ansible: Add Rocky Linux support to docker role
authorKienan Stewart <kstewart@efficios.com>
Wed, 28 Feb 2024 13:49:15 +0000 (08:49 -0500)
committerKienan Stewart <kstewart@efficios.com>
Thu, 29 Feb 2024 12:15:43 +0000 (07:15 -0500)
Change-Id: Ibed5027bfd39606fe5d6cab798fb7ef08bc004c6
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/docker/defaults/main.yml
automation/ansible/roles/docker/tasks/setup-RedHat.yml [new file with mode: 0644]
automation/ansible/roles/docker/vars/RedHat.yml [new file with mode: 0644]

index 4959b97b13d71d4bd0390a7e5574961e710e6534..3a252991cda496be1a25bc422503a94a4582dbd1 100644 (file)
@@ -21,3 +21,6 @@ docker_SLES_packages:
 docker_Ubuntu_packages:
   - 'docker.io'
   - 'docker-compose-v2'
+
+# Rocky Linux doesn't provide packages for docker
+docker_Rocky_packages: []
diff --git a/automation/ansible/roles/docker/tasks/setup-RedHat.yml b/automation/ansible/roles/docker/tasks/setup-RedHat.yml
new file mode 100644 (file)
index 0000000..f35ac6a
--- /dev/null
@@ -0,0 +1,11 @@
+---
+- ansible.builtin.set_fact:
+    docker_packages: "{{docker_upstream_packages}}"
+    docker_upstream: true
+- ansible.builtin.yum_repository:
+    name: docker
+    description: 'Docker CE Stable - $basearch'
+    baseurl: 'https://download.docker.com/linux/centos/$releasever/$basearch/stable'
+    enabled: true
+    gpgcheck: true
+    gpgkey: 'https://download.docker.com/linux/centos/gpg'
diff --git a/automation/ansible/roles/docker/vars/RedHat.yml b/automation/ansible/roles/docker/vars/RedHat.yml
new file mode 100644 (file)
index 0000000..cd21505
--- /dev/null
@@ -0,0 +1,2 @@
+---
+
This page took 0.023944 seconds and 4 git commands to generate.