1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2025-01-08 17:22:13 +01:00
doorlockd-mirror/ansible/roles/nginx/tasks/main.yml
Thomas Schmid d11473f44e ansible: add missing newline
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2019-07-08 22:54:37 +02:00

24 lines
402 B
YAML

---
- name: Install nginx
pacman:
name: nginx
- name: Create sites-available and sites-enabled
file:
path: "/etc/nginx/{{ item }}"
state: directory
with_items:
- sites-enabled
- sites-available
- name: Copy nginx configuration
copy:
src: nginx.conf
dest: /etc/nginx/nginx.conf
- name: Enable nginx
service:
name: nginx
enabled: yes
state: restarted