Add support for Archlinux.

This commit is contained in:
Fabian Köhler 2021-11-03 13:36:34 +01:00
parent e8c2b9ffbe
commit 5c1d66dfba
No known key found for this signature in database
GPG Key ID: D55A35AFB2900A11
2 changed files with 19 additions and 0 deletions

View File

@ -13,6 +13,7 @@
when: >
docker_compose_current_version.stdout is defined
and docker_compose_version not in docker_compose_current_version.stdout
and ansible_os_family != "Archlinux"
- name: Install Docker Compose (if configured).
get_url:
@ -22,3 +23,12 @@
when: >
docker_compose_current_version.stdout is not defined
or docker_compose_version not in docker_compose_current_version.stdout
and ansible_os_family != "Archlinux"
- name: Install Docker Compose (Archlinux)
package:
name: "docker-compose"
state: "{{ docker_package_state }}"
notify: restart docker
ignore_errors: "{{ ansible_check_mode }}"
when: ansible_os_family == 'Archlinux'

View File

@ -11,6 +11,15 @@
state: "{{ docker_package_state }}"
notify: restart docker
ignore_errors: "{{ ansible_check_mode }}"
when: ansible_os_family != 'Archlinux'
- name: Install Docker (Archlinux).
package:
name: "docker"
state: "{{ docker_package_state }}"
notify: restart docker
ignore_errors: "{{ ansible_check_mode }}"
when: ansible_os_family == 'Archlinux'
- name: Ensure /etc/docker/ directory exists.
file: