Add check_mode: no to prevent failing in --check mode

This commit is contained in:
Johan De Meersman
2017-03-13 17:43:45 +01:00
parent 21363d0527
commit ba2ae489f5
2 changed files with 2 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#Test if feature is installed
- shell: "{{es_home}}/bin/plugin list | sed -n '1!p' | grep {{item}}"
register: feature_installed
check_mode: no
changed_when: False
failed_when: "'ERROR' in feature_installed.stdout"
ignore_errors: yes

View File

@@ -9,6 +9,7 @@
shell: >
{{es_home}}/bin/plugin list | tail -n +2 | grep license
register: license_installed
check_mode: no
ignore_errors: yes
failed_when: "'ERROR' in license_installed.stdout"
changed_when: False