From 8747b45c5fcafa191db55d23988041f5ddc696d9 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 4 Mar 2019 01:59:43 -0500 Subject: Add support for alternate configuration directories, Ubuntu, FreeBSD, etc. --- tasks/install.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tasks/install.yml (limited to 'tasks/install.yml') diff --git a/tasks/install.yml b/tasks/install.yml new file mode 100644 index 0000000..72787c0 --- /dev/null +++ b/tasks/install.yml @@ -0,0 +1,15 @@ +- name: 'Install Nginx [Void}' + xbps: + name: nginx + state: present + when: ansible_facts['distribution'].lower() == "void" +- name: 'Install Nginx [Alpine]' + apk: + name: nginx + state: present + when: ansible_facts['distribution'].lower() == "alpine" +- name: 'Install Nginx [Ubuntu]' + apt: + name: nginx + state: present + when: ansible_facts['distribution'].lower() == "ubuntu" -- cgit v1.2.3