aboutsummaryrefslogtreecommitdiff
path: root/tasks/install.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/install.yml')
-rw-r--r--tasks/install.yml15
1 files changed, 15 insertions, 0 deletions
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"