File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11---
2-
32- name : Ensure beats certificate exists
43 ansible.builtin.stat :
54 path : " /etc/beats/certs/{{ inventory_hostname }}-beats.crt"
5352 state : absent
5453 when : beats_move_cert_directory.changed
5554
56- - name : Backup beats certs on elasticstack_ca host then remove
55+ - name : Backup beats certs on elasticstack_ca_host then remove
5756 when : " 'renew_beats_cert' in ansible_run_tags or 'renew_ca' in ansible_run_tags or beats_cert_will_expire_soon | bool"
58- delegate_to : " {{ elasticstack_ca }}"
57+ delegate_to : " {{ elasticstack_ca_host }}"
5958 tags :
6059 - renew_ca
6160 - renew_beats_cert
147146 src : " {{ elasticstack_ca_dir }}/{{ ansible_hostname }}-beats.zip"
148147 dest : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-beats.zip"
149148 flat : yes
150- delegate_to : " {{ elasticstack_ca }}"
149+ delegate_to : " {{ elasticstack_ca_host }}"
151150 tags :
152151 - certificates
153152 - renew_ca
204203 src : " {{ elasticstack_ca_dir }}/ca.crt"
205204 dest : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt"
206205 flat : yes
207- delegate_to : " {{ elasticstack_ca }}"
206+ delegate_to : " {{ elasticstack_ca_host }}"
208207 tags :
209208 - certificates
210209 - renew_ca
234233 register : beats_writer_password
235234 changed_when : false
236235 no_log : " {{ elasticstack_no_log }}"
237- delegate_to : " {{ elasticstack_ca }}"
236+ delegate_to : " {{ elasticstack_ca_host }}"
You can’t perform that action at this time.
0 commit comments