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
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:
parent
850a94e021
commit
9ceb90e925
@ -92,7 +92,8 @@ This variable defines whether or not to start the service after creating it. By
|
|||||||
Dependencies
|
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
|
Example Playbook
|
||||||
----------------
|
----------------
|
||||||
|
5
molecule/default/requirements.yml
Normal file
5
molecule/default/requirements.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# requirements file for molecule
|
||||||
|
roles:
|
||||||
|
- name: ednxzu.manage_repositories
|
||||||
|
- name: ednxzu.manage_apt_packages
|
@ -1,14 +1,5 @@
|
|||||||
---
|
---
|
||||||
# task/prerequisites file for renew_nomad_certificates
|
# 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 }}"
|
- name: "Create directory {{ renew_nomad_certificates_config_dir }}"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ renew_nomad_certificates_config_dir }}"
|
path: "{{ renew_nomad_certificates_config_dir }}"
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
---
|
---
|
||||||
# vars file for renew_nomad_certificates
|
# vars file for renew_nomad_certificates
|
||||||
renew_nomad_certificates_prerequisites_roles:
|
|
||||||
- ednxzu.manage_repositories
|
|
||||||
- ednxzu.manage_apt_packages
|
|
||||||
renew_nomad_certificates_repository:
|
renew_nomad_certificates_repository:
|
||||||
- uri: "https://apt.releases.hashicorp.com"
|
- uri: "https://apt.releases.hashicorp.com"
|
||||||
gpg_key: "https://apt.releases.hashicorp.com/gpg"
|
gpg_key: "https://apt.releases.hashicorp.com/gpg"
|
||||||
|
Loading…
Reference in New Issue
Block a user