Skip to content

Commit c139384

Browse files
committed
Replace missed variables
1 parent 053d97a commit c139384

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

roles/beats/tasks/beats-security.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
- name: Ensure beats certificate exists
43
ansible.builtin.stat:
54
path: "/etc/beats/certs/{{ inventory_hostname }}-beats.crt"
@@ -53,9 +52,9 @@
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
@@ -147,7 +146,7 @@
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
@@ -204,7 +203,7 @@
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
@@ -234,4 +233,4 @@
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 }}"

0 commit comments

Comments
 (0)