Bertrand Lanson
2873cd9e4c
Some checks failed
test / Linting (push) Successful in 32s
test / Molecule tests (default, debian12) (push) Successful in 2m27s
test / Molecule tests (default, ubuntu2004) (push) Successful in 2m29s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m19s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m25s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m25s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m41s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m19s
test / Molecule tests (default, debian11) (push) Failing after 45s
33 lines
1.1 KiB
YAML
33 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'
|
|
become: true
|
|
|
|
- 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'
|
|
become: true
|
|
|
|
- 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'
|
|
become: true
|
|
loop:
|
|
- "{{ renew_consul_certificates_cert_dest }}"
|
|
- "{{ renew_consul_certificates_key_dest }}"
|
|
- "{{ renew_consul_certificates_ca_dest }}"
|