diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-01-04 16:39:29 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-01-31 08:19:22 +0100 |
commit | f0488dccb2fe3cb7fc570372926abf0a312a8af8 (patch) | |
tree | fe9f421cad6d19ad27da4f68d58841c7078d6bc1 /tasks | |
parent | 649e6c4c696e369712ff18e792ef000125b5591c (diff) |
Install nginx.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/httpd.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tasks/httpd.yml b/tasks/httpd.yml new file mode 100644 index 0000000..0973db1 --- /dev/null +++ b/tasks/httpd.yml @@ -0,0 +1,50 @@ +--- +- name: Install nginx + apt: pkg=nginx-light + +- name: Start nginx + service: name=nginx enabled=true state=started + +- meta: flush_handlers + +- name: Create directory /etc/nginx/ssl + file: path=/etc/nginx/ssl + state=directory + owner=root group=root + mode=0755 + +- name: Install lacme + apt: pkg=lacme + +- name: Copy /etc/lacme/lacme-certs.conf.d/hel01.conf + copy: src=etc/lacme/lacme-certs.conf.d/hel01.conf + dest=/etc/lacme/lacme-certs.conf.d/hel01.conf + owner=root group=root + mode=0644 + +- name: Copy /etc/nginx/snippets/ssl.conf + copy: src=etc/nginx/snippets/ssl.conf + dest=/etc/nginx/snippets/ssl.conf + owner=root group=root + mode=0644 + notify: Reload nginx + +- name: Copy /etc/nginx/sites-enabled/webmap + copy: src=etc/nginx/sites-enabled/webmap + dest=/etc/nginx/sites-enabled/webmap + owner=root group=root + mode=0644 + notify: Reload nginx + +- name: Create directory /var/www/webmap + file: path=/var/www/webmap + state=directory + owner=root group=root + mode=0755 + +- name: Create /var/www/webmap/_.txt + copy: dest=/var/www/webmap/_.txt content="" + owner=root group=root + mode=0644 + +- meta: flush_handlers |