install docker using dedicated role

This commit is contained in:
Julien Fastré 2024-12-18 11:10:03 +01:00
parent 7567d4af84
commit 3c5a06d4b5
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 22 additions and 19 deletions

View File

@ -1,25 +1,16 @@
galaxy_info:
author: your name
description: your role description
company: your company (optional)
author: Julien Fastré
description: Install Chill using docker compose
company: Champs-Libres
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc)
# Choose a valid license ID from https://spdx.org
license: AGPL-3.0-or-later
min_ansible_version: 2.1
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
min_ansible_version: 2.9
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
@ -29,6 +20,5 @@ galaxy_info:
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
dependencies:
- geerlingguy.docker

View File

@ -1,2 +1,15 @@
# code: language=ansible
---
# tasks file for ansible_role_chill
# install docker on the machine
- include_role:
name: geerlingguy.docker
vars:
docker_edition: ce
docker_package_state: latest
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_install_compose_plugin: true
docker_add_repo: true