renew_consul_certificates/tasks/prerequisites.yml
Bertrand Lanson 44ca37f31d
All checks were successful
test / Linting (push) Successful in 8s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m9s
test / Molecule tests (default, debian12) (push) Successful in 1m13s
test / Molecule tests (default, debian11) (push) Successful in 1m13s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m6s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m8s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m14s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m8s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m10s
remove dependencies auto-install for standardization
2023-07-30 15:04:59 +02:00

30 lines
1.1 KiB
YAML

---
# task/prerequisites file for renew_consul_certificates
- name: "Create directory {{ renew_consul_certificates_config_dir }}"
ansible.builtin.file:
path: "{{ renew_consul_certificates_config_dir }}"
state: directory
owner: "{{ renew_consul_certificates_consul_user }}"
group: "{{ renew_consul_certificates_consul_group }}"
mode: '0755'
- name: "Create directory templates directory in {{ renew_consul_certificates_config_dir }}"
ansible.builtin.file:
path: "{{ renew_consul_certificates_config_dir }}/templates"
state: directory
owner: "{{ renew_consul_certificates_consul_user }}"
group: "{{ renew_consul_certificates_consul_group }}"
mode: '0755'
- name: "Ensure certificate/key directory(ies) exist(s)"
ansible.builtin.file:
path: "{{item | dirname }}"
state: directory
owner: "{{ renew_consul_certificates_consul_user }}"
group: "{{ renew_consul_certificates_consul_group }}"
mode: '0755'
loop:
- "{{ renew_consul_certificates_cert_dest }}"
- "{{ renew_consul_certificates_key_dest }}"
- "{{ renew_consul_certificates_ca_dest }}"