ansible/lighttpd.yml

24 lines
478 B
YAML
Raw Permalink Normal View History

2022-06-22 18:30:49 +00:00
- hosts: octo.fuz.re
become: yes
tasks:
- name: Lighttpd installé
apt:
name: lighttpd
- name: Copie la conf
copy:
src: files/lighttpd.conf
dest: /etc/lighttpd/lighttpd.conf
2022-06-22 20:19:06 +00:00
notify: Restart de lighttpd
2022-06-22 18:30:49 +00:00
- name: On charge lighttpd
service:
name: lighttpd
state: started
2022-06-22 20:19:06 +00:00
enabled: yes
handlers:
- name: Restart de lighttpd
service:
name: lighttpd
state: restarted