renew_vault_certificates/tasks/prerequisites.yml
Bertrand Lanson d4d541ee15
All checks were successful
test / Linting (push) Successful in 6s
test / Molecule tests (default, debian12) (push) Successful in 1m4s
test / Molecule tests (default, debian11) (push) Successful in 1m7s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m6s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m4s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m7s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m2s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m5s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m14s
remove dependencies auto-install, for more standard roles
2023-07-30 15:15:36 +02:00

29 lines
1.0 KiB
YAML

---
# task/prerequisites file for renew_vault_certificates
- name: "Create directory {{ renew_vault_certificates_config_dir }}"
ansible.builtin.file:
path: "{{ renew_vault_certificates_config_dir }}"
state: directory
owner: "{{ renew_vault_certificates_vault_user }}"
group: "{{ renew_vault_certificates_vault_group }}"
mode: '0755'
- name: "Create directory templates directory in {{ renew_vault_certificates_config_dir }}"
ansible.builtin.file:
path: "{{ renew_vault_certificates_config_dir }}/templates"
state: directory
owner: "{{ renew_vault_certificates_vault_user }}"
group: "{{ renew_vault_certificates_vault_group }}"
mode: '0755'
- name: "Ensure certificate/key directory(ies) exist(s)"
ansible.builtin.file:
path: "{{item | dirname }}"
state: directory
owner: "{{ renew_vault_certificates_vault_user }}"
group: "{{ renew_vault_certificates_vault_group }}"
mode: '0755'
loop:
- "{{ renew_vault_certificates_cert_dest }}"
- "{{ renew_vault_certificates_key_dest }}"