diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-03-04 01:59:43 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-03-04 01:59:43 -0500 |
| commit | 8747b45c5fcafa191db55d23988041f5ddc696d9 (patch) | |
| tree | 42ead7b50b3156e27aa8afc3b69a96bd7df3f4c5 /tasks/install.yml | |
| parent | c06f286b6d7a6c1b63cbcd7289a0343564939ebe (diff) | |
| download | nginx-8747b45c5fcafa191db55d23988041f5ddc696d9.tar.gz nginx-8747b45c5fcafa191db55d23988041f5ddc696d9.tar.xz | |
Add support for alternate configuration directories, Ubuntu, FreeBSD, etc.
Diffstat (limited to 'tasks/install.yml')
| -rw-r--r-- | tasks/install.yml | 15 |
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" |
