remove auto-install dependencies, to make roles more standard
All checks were successful
test / Linting (push) Successful in 8s
test / Molecule tests (default, debian11) (push) Successful in 1m2s
test / Molecule tests (default, debian12) (push) Successful in 1m13s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m6s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m8s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m1s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m11s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m9s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m5s

This commit is contained in:
Bertrand Lanson 2023-07-30 15:06:45 +02:00
parent 850a94e021
commit 9ceb90e925
4 changed files with 7 additions and 13 deletions

View File

@ -92,7 +92,8 @@ This variable defines whether or not to start the service after creating it. By
Dependencies
------------
This role has a task that installs its own dependencies located in `task/prerequisites.yml`, so that you don't need to manage them. This role requires both `ednxzu.manage_repositories` and `ednxzu.manage_apt_packages` to install consul-template.
`ednxzu.manage_repositories` to configure hashicorp apt repository.
`ednxzu.manage_apt_packages` to install consul-template.
Example Playbook
----------------

View File

@ -0,0 +1,5 @@
---
# requirements file for molecule
roles:
- name: ednxzu.manage_repositories
- name: ednxzu.manage_apt_packages

View File

@ -1,14 +1,5 @@
---
# task/prerequisites file for renew_nomad_certificates
- name: "Install required roles"
ansible.builtin.command:
cmd: "ansible-galaxy install {{ item }}"
loop: "{{ renew_nomad_certificates_prerequisites_roles }}"
changed_when: false
become: false
delegate_to: localhost
run_once: true
- name: "Create directory {{ renew_nomad_certificates_config_dir }}"
ansible.builtin.file:
path: "{{ renew_nomad_certificates_config_dir }}"

View File

@ -1,8 +1,5 @@
---
# vars file for renew_nomad_certificates
renew_nomad_certificates_prerequisites_roles:
- ednxzu.manage_repositories
- ednxzu.manage_apt_packages
renew_nomad_certificates_repository:
- uri: "https://apt.releases.hashicorp.com"
gpg_key: "https://apt.releases.hashicorp.com/gpg"