shellやcommandモジュールを使用していて、moleculeでtest実行時に下記エラーが出て失敗してしまう場合
CRITICAL Idempotence test failed because of the following tasks:
Molecule will skip tasks which are tagged with either molecule-notest or notest. >With the tag molecule-idempotence-notest tasks are only skipped during the >idempotence action step.
下記のようにtagを付けたタスクでIdempotence testをスキップできる。
- name: Update sudo
command:
cmd: "rpm -Fvh ~/sudo-1.9.5-3.el6.x86_64.rpm"
become: "yes"
tags:
- molecule-idempotence-notest