Merge pull request #1198 from wazuh/enhancement/wa-1479-indexer-cluster-initialization-and-ism-execution-should-be-executed-once-in-demo
Some indexer tasks are only executed once
This commit is contained in:
commit
0d30c50b80
@ -102,7 +102,7 @@
|
|||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
run_once: true
|
when: inventory_hostname == ansible_play_hosts[0]
|
||||||
|
|
||||||
- name: Create custom user
|
- name: Create custom user
|
||||||
uri:
|
uri:
|
||||||
@ -122,5 +122,6 @@
|
|||||||
timeout: 4
|
timeout: 4
|
||||||
when:
|
when:
|
||||||
- indexer_custom_user is defined and indexer_custom_user
|
- indexer_custom_user is defined and indexer_custom_user
|
||||||
|
- inventory_hostname == ansible_play_hosts[0]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user