Fixed validation

This commit is contained in:
c-bordon 2024-06-27 16:33:36 -03:00
parent f15ead77c6
commit aae4ccb5dd
No known key found for this signature in database
GPG Key ID: E723BAA51FA52642

View File

@ -35,7 +35,6 @@
dest: "{{ local_certs_path }}/config.yml" dest: "{{ local_certs_path }}/config.yml"
mode: 0644 mode: 0644
register: tlsconfig_template register: tlsconfig_template
when: ansible_os_family != 'Darwin'
- name: Local action | Generate the node & admin certificates in local - name: Local action | Generate the node & admin certificates in local
command: >- command: >-
@ -56,18 +55,19 @@
- name: Local action | Run Docker container on macOS - name: Local action | Run Docker container on macOS
community.docker.docker_container: community.docker.docker_container:
name: wazuh-cert-tool name: wazuh-cert-tool
image: "wazuh/wazuh-cert-tool" image: "wazuh-certs-tool"
state: started state: started
auto_remove: true auto_remove: true
volumes: volumes:
- "{{ local_certs_path }}/config.yml:/config/certs.yml" - "{{ local_certs_path }}/config.yml:/config/certs.yml"
- "{{ local_certs_path }}/wazuh-certificates:/certificates/" - "{{ local_certs_path }}/wazuh-certificates/:/certificates/"
when: ansible_os_family == 'Darwin' when: ansible_os_family == 'Darwin'
- name: Local action | Remove Docker image after execution - name: Local action | Remove Docker image after execution
community.docker.docker_image: community.docker.docker_image:
name: "wazuh/wazuh-cert-tool" name: "wazuh-certs-tool"
state: absent state: absent
force_absent: yes
when: ansible_os_family == 'Darwin' when: ansible_os_family == 'Darwin'
run_once: true run_once: true