LoginSignup
1
0

More than 3 years have passed since last update.

[Ansible]moleculeでIdempotence testを除外する

Posted at

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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0