remove auto-install dependencies to get more standard role
All checks were successful
test / Linting (push) Successful in 6s
test / Molecule tests (default, debian11) (push) Successful in 49s
test / Molecule tests (default, ubuntu2004) (push) Successful in 49s
test / Molecule tests (default, debian12) (push) Successful in 1m5s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 49s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m9s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m3s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 56s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 56s
All checks were successful
test / Linting (push) Successful in 6s
test / Molecule tests (default, debian11) (push) Successful in 49s
test / Molecule tests (default, ubuntu2004) (push) Successful in 49s
test / Molecule tests (default, debian12) (push) Successful in 1m5s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 49s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m9s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m3s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 56s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 56s
This commit is contained in:
parent
3df5eec25e
commit
613b38a8ff
@ -28,7 +28,7 @@ This variable is a list of packages, with their name, desired version and state.
|
|||||||
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 `ednxzu.manage_apt_packages` to install python3 and pip. If you already installed python and pip, you can skip dependencies by setting `manage_pip_packages_install_prereqs` to `false`.
|
`ednxzu.manage_apt_packages` to install python3 and pip (if selected).
|
||||||
|
|
||||||
Example Playbook
|
Example Playbook
|
||||||
----------------
|
----------------
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
---
|
---
|
||||||
# task/prerequisites file for manage_pip_packages
|
# task/prerequisites file for manage_pip_packages
|
||||||
- name: "Install required roles"
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: "ansible-galaxy install {{ item }}"
|
|
||||||
loop: "{{ manage_pip_packages_prerequisites_roles }}"
|
|
||||||
changed_when: false
|
|
||||||
become: false
|
|
||||||
delegate_to: localhost
|
|
||||||
run_once: true
|
|
||||||
|
|
||||||
- name: "Install python3 and pip"
|
- name: "Install python3 and pip"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: ednxzu.manage_apt_packages
|
name: ednxzu.manage_apt_packages
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
# vars file for manage_pip_packages
|
# vars file for manage_pip_packages
|
||||||
manage_pip_packages_prerequisites_roles:
|
|
||||||
- ednxzu.manage_apt_packages
|
|
||||||
manage_pip_packages_required_packages:
|
manage_pip_packages_required_packages:
|
||||||
- name: python3
|
- name: python3
|
||||||
version: latest
|
version: latest
|
||||||
|
Loading…
Reference in New Issue
Block a user