remove dependencies auto-install for more standard role
All checks were successful
test / Linting (push) Successful in 7s
test / Molecule tests (default, debian12) (push) Successful in 1m33s
test / Molecule tests (default, debian11) (push) Successful in 1m36s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m44s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m27s
test / Molecule tests (with_custom_config, debian11) (push) Successful in 1m46s
test / Molecule tests (with_custom_config, debian12) (push) Successful in 1m37s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Successful in 1m45s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Successful in 1m45s

This commit is contained in:
Bertrand Lanson 2023-07-30 13:30:00 +02:00
parent 247917a762
commit f3446af6d6
3 changed files with 3 additions and 14 deletions

View File

@ -61,7 +61,9 @@ This variable defines the parameters to append to the daemon.json file (in `/etc
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_repositories`, `ednxzu.manage_apt_packages` and `ednxzu.manage_apt_packages` to install docker and potentially python packages.
`ednxzu.manage_pip_packages` to install docker python packages for using the `community.docker` modules.
`ednxzu.manage_repositories` to configure the docker apt repository.
`ednxzu.manage_apt_packages` to install docker.
Example Playbook
----------------

View File

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

View File

@ -1,9 +1,5 @@
---
# vars file for install_docker
install_docker_prerequisites_roles:
- ednxzu.manage_repositories
- ednxzu.manage_apt_packages
- ednxzu.manage_pip_packages
install_docker_compose_path: "/usr/local/bin/docker-compose"
install_docker_compose_github_api: https://api.github.com/repos/docker/compose
install_docker_compose_github_url: https://github.com/docker/compose