Fixed running ansible in check mode (#701)
Co-authored-by: Julien Mailleret <8582351+jmlrt@users.noreply.github.com>
This commit is contained in:
parent
9539712bd7
commit
d99c0c86c5
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@
|
|||
state: present
|
||||
update_cache: yes
|
||||
allow_downgrade: '{{ allow_downgrade }}'
|
||||
when: es_use_repository
|
||||
when: es_use_repository and not ansible_check_mode
|
||||
register: redhat_elasticsearch_install_from_repo
|
||||
notify: restart elasticsearch
|
||||
until: redhat_elasticsearch_install_from_repo.rc == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue