File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
roles/elasticsearch/tasks Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 77
77
path : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt"
78
78
register : elasticsearch_check_temporary_ca
79
79
delegate_to : localhost
80
+ become : false
80
81
81
82
- name : Move temporary ca file on Ansible controler
82
83
ansible.builtin.copy :
85
86
mode : preserve
86
87
when : elasticsearch_check_temporary_ca.stat.exists
87
88
delegate_to : localhost
89
+ become : false
88
90
register : elasticsearch_move_ca_file
89
91
90
92
- name : Remove temporary ca file on Ansible controler
93
95
state : absent
94
96
when : elasticsearch_move_ca_file.changed
95
97
delegate_to : localhost
98
+ become : false
96
99
97
100
- name : Ensure elasticsearch certificate exists
98
101
ansible.builtin.stat :
179
182
- name : Backup elasticsearch cert on localhost then remove
180
183
when : " 'renew_es_cert' in ansible_run_tags or 'renew_ca' in ansible_run_tags or elasticsearch_cert_will_expire_soon | bool"
181
184
delegate_to : localhost
185
+ become : false
182
186
tags :
183
187
- renew_es_cert
184
188
- renew_ca
You can’t perform that action at this time.
0 commit comments