Add support for Archlinux

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-03 01:11:29 +01:00
parent 0a05e784c3
commit 745541d952
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
7 changed files with 28 additions and 4 deletions

View file

@ -4,6 +4,7 @@ This role installs [ELB Instance Status](https://github.com/Luzifer/elb-instance
## Requirements
- Archlinux
- Debian >= 8 (jessie)
- Ubuntu >= 16.04 (xenial)

View file

@ -1,6 +1,7 @@
---
instance_status_apt_required: []
instance_status_pacman_required: []
instance_status_global_checks: {}
instance_status_checks: {}

View file

@ -15,6 +15,8 @@ galaxy_info:
versions:
- jessie
- stretch
- name: Archlinux
versions: [all]
categories:
#- cloud

9
tasks/Archlinux.yml Normal file
View file

@ -0,0 +1,9 @@
---
- name: Install required packages
pacman:
name: "{{ item }}"
state: latest
with_items: '{{ instance_status_pacman_required }}'
...

5
tasks/Debian.yml Normal file
View file

@ -0,0 +1,5 @@
---
- include: Ubuntu.yml
...

8
tasks/Ubuntu.yml Normal file
View file

@ -0,0 +1,8 @@
---
- name: Install required packages
apt:
name: "{{ item }}"
with_items: '{{ instance_status_apt_required }}'
...

View file

@ -1,9 +1,7 @@
---
- name: Install required packages
apt:
name: "{{ item }}"
with_items: '{{ instance_status_apt_required }}'
- name: "Loading distribution specific instructions for {{ ansible_distribution }}"
include: "{{ ansible_distribution }}.yml"
- name: Set up checks file for ELB Instance Status
template: