From 63ec452342d5b68dc12db1fde8cb449caf4c39f0 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 15 Oct 2023 09:09:18 +0000 Subject: [PATCH] add AltLinux support --- tasks/main.yml | 6 +++++- vars/AltLinux-8.yml | 3 +++ vars/AltLinux-9.yml | 3 +++ vars/AltLinux.yml | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 vars/AltLinux-8.yml create mode 100644 vars/AltLinux-9.yml create mode 100644 vars/AltLinux.yml diff --git a/tasks/main.yml b/tasks/main.yml index dcd47de..a807c01 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,6 +4,7 @@ vars: params: files: + - '{{ansible_distribution}}-{{ansible_lsb.major_release}}.yml' - '{{ansible_distribution}}.yml' - '{{ansible_os_family}}.yml' - main.yml @@ -11,7 +12,10 @@ - 'vars' - include_tasks: setup-RedHat.yml - when: ansible_os_family == 'RedHat' + when: ansible_os_family == 'RedHat' and ansible_distribution != 'AltLinux' + +- include_tasks: setup-AltLinux.yml + when: - include_tasks: setup-Debian.yml when: ansible_os_family == 'Debian' diff --git a/vars/AltLinux-8.yml b/vars/AltLinux-8.yml new file mode 100644 index 0000000..cd44662 --- /dev/null +++ b/vars/AltLinux-8.yml @@ -0,0 +1,3 @@ +--- +docker_packages: "docker-ce" +docker_compose_package: "docker-compose" \ No newline at end of file diff --git a/vars/AltLinux-9.yml b/vars/AltLinux-9.yml new file mode 100644 index 0000000..cd44662 --- /dev/null +++ b/vars/AltLinux-9.yml @@ -0,0 +1,3 @@ +--- +docker_packages: "docker-ce" +docker_compose_package: "docker-compose" \ No newline at end of file diff --git a/vars/AltLinux.yml b/vars/AltLinux.yml new file mode 100644 index 0000000..b8a4e7e --- /dev/null +++ b/vars/AltLinux.yml @@ -0,0 +1,3 @@ +--- +docker_packages: "docker-engine" +docker_compose_package: "docker-compose-v2"