]> freie-schul-it.de Git - fsit-smgt.git/blob - library/lighttpd.yml
in Zukunft lieber öffters committen...
[fsit-smgt.git] / library / lighttpd.yml
1 ---
2 - name: install server specific packages
3 apt:
4 pkg:
5 - lighttpd
6 - rsync
7 - name: lighttpd - change simple-vhost config
8 ansible.builtin.replace:
9 path: /etc/lighttpd/conf-available/10-simple-vhost.conf
10 regexp: 'www.example.com'
11 replace: 'testbild'
12 # - name: lighttpd - aktiviere simple-vhost
13 # command: lighty-enable-mod simple-vhost
14 - name: lighttpd - reload service
15 command: service lighttpd force-reload
16 - name: lighttpd - erstelle "Testbild" vhost Verzeichnis
17 file:
18 path: /srv/testbild/htdocs
19 state: directory
20 - name: lighttpd - kopiere Testbild Webseite
21 copy:
22 src: files/lighttpd-intranet_index.html
23 dest: /srv/testbild/htdocs/index.html
24 owner: root
25 group: root
26 mode: 0644
27 - name: lighttpd - kopiere Testbild
28 copy:
29 src: files/lighttpd-intranet_FuBK-Testbild.png
30 dest: /srv/testbild/htdocs/FuBK-Testbild.png
31 owner: root
32 group: root
33 mode: 0644
34 - name: lighttpd - erstelle vhost "Intranet" Verzeichnis
35 file:
36 path: /srv/intranet/htdocs
37 state: directory
38 - name: lighttpd - erstelle vhost "digitales" Verzeichnis
39 file:
40 path: /srv/digitales/htdocs
41 state: directory
42 ...