Feat: Déploiement d'un serveur cache pour Pacman
This commit is contained in:
25
tasks/pacman_cache_server.yml
Normal file
25
tasks/pacman_cache_server.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user