From 5eedd16f41bfd900109cfbed00e882a20df033c5 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Mon, 12 Jan 2026 10:11:21 +0100 Subject: [PATCH] Fix controler typo --- .../tasks/elasticsearch-security.yml | 12 +++---- roles/logstash/tasks/logstash-security.yml | 36 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/roles/elasticsearch/tasks/elasticsearch-security.yml b/roles/elasticsearch/tasks/elasticsearch-security.yml index a5997c1e..75fca634 100644 --- a/roles/elasticsearch/tasks/elasticsearch-security.yml +++ b/roles/elasticsearch/tasks/elasticsearch-security.yml @@ -72,14 +72,14 @@ state: absent when: elasticsearch_move_ca_directory.changed - - name: Check the existance of ca on Ansible controler + - name: Check the existance of ca on Ansible controller ansible.builtin.stat: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt" register: elasticsearch_check_temporary_ca delegate_to: localhost become: false - - name: Move temporary ca file on Ansible controler + - name: Move temporary ca file on Ansible controller ansible.builtin.copy: src: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt_{{ ansible_date_time.iso8601_micro }}" @@ -89,7 +89,7 @@ become: false register: elasticsearch_move_ca_file - - name: Remove temporary ca file on Ansible controler + - name: Remove temporary ca file on Ansible controller ansible.builtin.file: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt" state: absent @@ -187,12 +187,12 @@ - renew_es_cert - renew_ca block: - - name: Check the existance of cert on Ansible controler + - name: Check the existance of cert on Ansible controller ansible.builtin.stat: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}.p12" register: elasticsearch_check_temporary_cert - - name: Move temporary cert on Ansible controler + - name: Move temporary cert on Ansible controller ansible.builtin.copy: src: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}.p12" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}.p12_{{ ansible_date_time.iso8601_micro }}" @@ -200,7 +200,7 @@ when: elasticsearch_check_temporary_cert.stat.exists register: elasticsearch_move_cert_file - - name: Remove temporary cert on Ansible controler + - name: Remove temporary cert on Ansible controller ansible.builtin.file: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}.p12" state: absent diff --git a/roles/logstash/tasks/logstash-security.yml b/roles/logstash/tasks/logstash-security.yml index 4e8e1901..7e97208f 100644 --- a/roles/logstash/tasks/logstash-security.yml +++ b/roles/logstash/tasks/logstash-security.yml @@ -108,7 +108,7 @@ state: absent when: logstash_move_cert_zip_file_ca_host.changed -- name: Backup logstash cert on Ansible controler then remove +- name: Backup logstash cert on Ansible controller then remove when: "'renew_logstash_cert' in ansible_run_tags or 'renew_ca' in ansible_run_tags" delegate_to: localhost tags: @@ -116,43 +116,43 @@ - renew_logstash_cert - never block: - - name: Check the existance of cert on Ansible controler + - name: Check the existance of cert on Ansible controller ansible.builtin.stat: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.p12" - register: logstash_check_temporary_cert_ansible_controler + register: logstash_check_temporary_cert_ansible_controller - - name: Move temporary cert file on Ansible controler + - name: Move temporary cert file on Ansible controller ansible.builtin.copy: src: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.p12" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.p12_{{ ansible_date_time.iso8601_micro }}" mode: preserve - when: logstash_check_temporary_cert_ansible_controler.stat.exists - register: logstash_move_cert_file_ansible_controler + when: logstash_check_temporary_cert_ansible_controller.stat.exists + register: logstash_move_cert_file_ansible_controller - - name: Remove temporary cert file on Ansible controler + - name: Remove temporary cert file on Ansible controller ansible.builtin.file: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.p12" state: absent - when: logstash_move_cert_file_ansible_controler.changed + when: logstash_move_cert_file_ansible_controller.changed - - name: Check the existance of cert zip file on Ansible controler + - name: Check the existance of cert zip file on Ansible controller ansible.builtin.stat: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.zip" - register: logstash_check_temporary_cert_zip_ansible_controler + register: logstash_check_temporary_cert_zip_ansible_controller - - name: Move temporary cert zip file on Ansible controler + - name: Move temporary cert zip file on Ansible controller ansible.builtin.copy: src: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.zip" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.zip_{{ ansible_date_time.iso8601_micro }}" mode: preserve - when: logstash_check_temporary_cert_zip_ansible_controler.stat.exists - register: logstash_move_cert_zip_ansible_controler + when: logstash_check_temporary_cert_zip_ansible_controller.stat.exists + register: logstash_move_cert_zip_ansible_controller - - name: Remove temporary cert zip file on Ansible controler + - name: Remove temporary cert zip file on Ansible controller ansible.builtin.file: path: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.zip" state: absent - when: logstash_move_cert_zip_ansible_controler.changed + when: logstash_move_cert_zip_ansible_controller.changed - name: Create individual certificates for Logstash ansible.builtin.command: > @@ -174,7 +174,7 @@ - renew_ca - renew_logstash_cert -- name: Fetch certificate from ca host to Ansible controler +- name: Fetch certificate from ca host to Ansible controller ansible.builtin.fetch: src: "{{ elasticstack_ca_dir }}/{{ ansible_hostname }}-ls.p12" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.p12" @@ -244,7 +244,7 @@ - renew_ca - renew_logstash_cert -- name: Fetch PEM certificate from ca host to Ansible controler +- name: Fetch PEM certificate from ca host to Ansible controller ansible.builtin.fetch: src: "{{ elasticstack_ca_dir }}/{{ ansible_hostname }}-ls.zip" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ ansible_hostname }}-ls.zip" @@ -324,7 +324,7 @@ - renew_ca - renew_logstash_cert -- name: Fetch ca certificate from ca host to Ansible controler +- name: Fetch ca certificate from ca host to Ansible controller ansible.builtin.fetch: src: "{{ elasticstack_ca_dir }}/ca.crt" dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt"