Ansible_workstation/tasks/pacman_cache_server.yml

26 lines
417 B
YAML
Raw Normal View History

---
- 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