26 lines
417 B
YAML
26 lines
417 B
YAML
---
|
|
- name: Install nginx
|
|
pacman:
|
|
name: nginx
|
|
state: present
|
|
|
|
- name: create cache directy
|
|
file:
|
|
path: /srv/http/pacman-cache
|
|
state: directory
|
|
owner: http
|
|
group: http
|
|
|
|
- name: copy nginx config
|
|
template:
|
|
src: files/nginx.conf
|
|
dest: /etc/nginx/nginx.conf
|
|
owner: root
|
|
group: root
|
|
|
|
- name: Enable nginx daemon
|
|
service:
|
|
name: nginx
|
|
state: started
|
|
enabled: yes
|