diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-09-14 17:39:36 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-09-14 17:39:36 -0400 |
| commit | 1f3a68c3914311188943a10f57fe309821c5f15b (patch) | |
| tree | 53fd676c5a91c635c002a12bd005fd7cc48f828d /tasks/alpine.yml | |
| parent | 956973a11dedea5f7798052b1bc5e69556af30b0 (diff) | |
| download | nginx-1f3a68c3914311188943a10f57fe309821c5f15b.tar.gz nginx-1f3a68c3914311188943a10f57fe309821c5f15b.tar.xz | |
Add in support for Alpine Linux
Diffstat (limited to 'tasks/alpine.yml')
| -rw-r--r-- | tasks/alpine.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tasks/alpine.yml b/tasks/alpine.yml new file mode 100644 index 0000000..763d74f --- /dev/null +++ b/tasks/alpine.yml @@ -0,0 +1,30 @@ +- name: Install Nginx + apk: + name: nginx +- name: Install Runit service directory + file: + state: directory + path: /etc/sv/nginx + mode: '0755' +- name: Install Runit service command + copy: + content: | + #!/bin/sh + mkdir -p /run/nginx + exec nginx -g 'daemon off;' + dest: /etc/sv/nginx/run + mode: '755' +- name: Install supervise symlink + file: + state: link + force: yes + src: /run/supervise.nginx + dest: /etc/sv/nginx/supervise + follow: false +- name: 'Enable Nginx' + file: + src: /etc/sv/nginx + dest: /var/service/nginx + owner: root + group: root + state: link |
