1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-16 03:59:11 +01:00
doorlockd-mirror/ansible/roles/nginx/tasks/main.yml

23 lines
401 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