diff options
author | Adam Malinowski <a.malinowsk2@partner.samsung.com> | 2016-08-25 14:23:55 +0200 |
---|---|---|
committer | Adam Malinowski <a.malinowsk2@partner.samsung.com> | 2016-12-20 11:33:25 +0100 |
commit | 616baf553a557da7532e16ba7cc1f6609cc9c9c4 (patch) | |
tree | 597a5ed93ee51d9fc8831bcb260c29a5ac76d0b3 | |
parent | c3cfaf4411a9e0abab0b4552811b437db13ce75b (diff) | |
download | host-616baf553a557da7532e16ba7cc1f6609cc9c9c4.tar.gz host-616baf553a557da7532e16ba7cc1f6609cc9c9c4.tar.bz2 host-616baf553a557da7532e16ba7cc1f6609cc9c9c4.zip |
Add installing and configuring lighttpd server
Change-Id: Ia5fcef16eda907e39cad283905b4c58fdd7465f6
-rw-r--r-- | config/hosts/master/roles/system/tasks/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/hosts/master/roles/system/tasks/main.yml b/config/hosts/master/roles/system/tasks/main.yml index 92cb500..18ff32e 100644 --- a/config/hosts/master/roles/system/tasks/main.yml +++ b/config/hosts/master/roles/system/tasks/main.yml @@ -17,8 +17,29 @@ - wget - task-spooler - python-bs4 + - lighttpd - git +- name: Configure lighttpd - document root + lineinfile: + dest: /etc/lighttpd/lighttpd.conf + state: present + regexp: '^server.document-root' + line: 'server.document-root = "/home/{{ username }}/ws"' + +- name: Configure lighttpd - index files + lineinfile: + dest: /etc/lighttpd/lighttpd.conf + state: present + regexp: '^index-file.names' + line: 'index-file.names = ( "index.php", "index.html", "index.lighttpd.html", "current_status.html" )' + +- name: Configure lighttpd - enable dir listing configuration + file: + dest: /etc/lighttpd/conf-enabled/10-dir-listing.conf + src: /etc/lighttpd/conf-available/10-dir-listing.conf + state: link + - name: Set http_proxy environment variable lineinfile: dest: /etc/environment |