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/enable.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/enable.yml')
| -rw-r--r-- | tasks/enable.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tasks/enable.yml b/tasks/enable.yml new file mode 100644 index 0000000..8d9fcd7 --- /dev/null +++ b/tasks/enable.yml @@ -0,0 +1,14 @@ +- name: 'Enable Nginx [Void]' + file: + src: /etc/sv/nginx + dest: /var/service/nginx + owner: root + group: root + state: link + when: ansible_facts['distribution'].lower() == "void" +- name: 'Enable Nginx [Ubuntu]' + systemd: + enabled: yes + daemon_reload: yes + name: nginx + when: ansible_facts['distribution'].lower() == "ubuntu" |
