remove auto-install dependencies, to make roles more standard
Some checks failed
test / Linting (push) Failing after 9s
test / Molecule tests (default, debian11) (push) Has been skipped
test / Molecule tests (default, debian12) (push) Has been skipped
test / Molecule tests (default, ubuntu2004) (push) Has been skipped
test / Molecule tests (default, ubuntu2204) (push) Has been skipped
test / Molecule tests (with_custom_config, debian11) (push) Has been skipped
test / Molecule tests (with_custom_config, debian12) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2004) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2204) (push) Has been skipped
Some checks failed
test / Linting (push) Failing after 9s
test / Molecule tests (default, debian11) (push) Has been skipped
test / Molecule tests (default, debian12) (push) Has been skipped
test / Molecule tests (default, ubuntu2004) (push) Has been skipped
test / Molecule tests (default, ubuntu2204) (push) Has been skipped
test / Molecule tests (with_custom_config, debian11) (push) Has been skipped
test / Molecule tests (with_custom_config, debian12) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2004) (push) Has been skipped
test / Molecule tests (with_custom_config, ubuntu2204) (push) Has been skipped
This commit is contained in:
parent
5ab6aecc9c
commit
67666c1c5e
@ -52,7 +52,7 @@ This variable contains the content of your netplan file in yml format. This what
|
||||
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 `ednxzu.manage_apt_packages` to install netplan and eventually network-manager if needed.
|
||||
`ednxzu.manage_apt_packages` to install needed packages for netplan.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
# requirements file for molecule
|
||||
roles: []
|
||||
roles:
|
||||
- name: ednxzu.manage_apt_packages
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
# requirements file for molecule
|
||||
roles: []
|
||||
roles:
|
||||
- name: ednxzu.manage_apt_packages
|
@ -1,8 +1,5 @@
|
||||
---
|
||||
# task/main file for manage_netplan
|
||||
- name: "Import prerequisites.yml"
|
||||
ansible.builtin.include_tasks: prerequisites.yml
|
||||
|
||||
- name: "Import install.yml"
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
when: manage_netplan_install
|
||||
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
# task/prerequisites file for manage_netplan
|
||||
- name: "Install required roles"
|
||||
ansible.builtin.command:
|
||||
cmd: "ansible-galaxy install {{ item }}"
|
||||
loop: "{{ manage_netplan_prerequisites_roles }}"
|
||||
changed_when: false
|
||||
become: false
|
||||
delegate_to: localhost
|
||||
run_once: true
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
# vars file for manage_netplan
|
||||
manage_netplan_prerequisites_roles:
|
||||
- ednxzu.manage_apt_packages
|
||||
manage_netplan_packages:
|
||||
- name: netplan.io
|
||||
version: latest
|
||||
|
Loading…
Reference in New Issue
Block a user