Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Archlinux based operating systems #74

Merged
merged 4 commits into from
Jul 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
when:
- ansible_facts.os_family == "Debian"

- name: Ensure pacman cache is up to date
community.general.pacman:
update_cache: true
when:
- ansible_facts.os_family == "Archlinux"

handlers:
- name: Include handlers.
Expand Down
1 change: 1 addition & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
collections:
- ansible.posix
- community.docker
- community.general
16 changes: 15 additions & 1 deletion tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
state: started
enabled: true

- name: Ensure dependencies are installed.
- name: Ensure dependencies are installed (Debian).
ansible.builtin.apt:
name:
- libffi-dev
Expand All @@ -34,6 +34,20 @@
- python3-pip
- git
state: present
when:
- ansible_facts.os_family == "Debian"

- name: Ensure dependencies are installed (Archlinux).
community.general.pacman:
name:
- libffi
- openssl
- base-devel
- python-pip
- git
state: present
when:
- ansible_facts.os_family == "Archlinux"

- name: Install Docker Compose using Pip.
ansible.builtin.pip:
Expand Down
1 change: 1 addition & 0 deletions tasks/internet-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
ansible.builtin.template:
src: templates/{{ item.src }}
dest: "{{ config_dir }}/internet-monitoring/{{ item.dest }}"
mode: 0644
loop:
- src: grafana-config.monitoring.j2
dest: grafana/config.monitoring
Expand Down