update template

This commit is contained in:
2020-04-27 08:20:24 +02:00
parent 25ab1638ec
commit 1d43db174d
2 changed files with 49 additions and 0 deletions

25
tasks/main.yml Normal file
View File

@ -0,0 +1,25 @@
---
- name: update apk cache
apk: update_cache=yes
- name: install lighttpd
apk: name=lighttpd state=present
- name: install perl-cgi
apk: name=perl-cgi state=present
- name: deploy lighttpd.conf
template:
src: lighttpd.conf.j2
dest: /etc/lighttpd/lighttpd.conf
owner: root
group: root
mode: 0644
force: yes
- name: enable lighttpd on boot
command: rc-update add lighttpd default
- name: start lighttpd
command: rc-service lighttpd start