From 3c5a06d4b568e6cd069f0cedc77ce594e0e8b2b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julien=20Fastr=C3=A9?= <julien.fastre@champs-libres.coop>
Date: Wed, 18 Dec 2024 11:10:03 +0100
Subject: [PATCH] install docker using dedicated role

---
 meta/main.yml  | 26 ++++++++------------------
 tasks/main.yml | 15 ++++++++++++++-
 2 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/meta/main.yml b/meta/main.yml
index ea68190..b123448 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -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
\ No newline at end of file
diff --git a/tasks/main.yml b/tasks/main.yml
index b412fee..674c603 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -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
+      
\ No newline at end of file