mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
Merge pull request #263 from meersjo/2.x_checkmode
Add check_mode: no to prevent failing in --check mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user