mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-11-15 19:49:12 +01:00
23 lines
401 B
YAML
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
|