diff --git a/all.yml b/all.yml index 6130866..6c78061 100644 --- a/all.yml +++ b/all.yml @@ -33,3 +33,6 @@ tags: containers, gitea roles: [gitea] +- hosts: file-host + tags: containers, file_host + roles: [file-host] diff --git a/roles/file-host/tasks/main.yml b/roles/file-host/tasks/main.yml new file mode 100644 index 0000000..102fb4d --- /dev/null +++ b/roles/file-host/tasks/main.yml @@ -0,0 +1,15 @@ +--- +- name: install packages + apk: + name: + - lighttpd + state: installed + +- vars: + block: + - name: start and enable lighttpd + service: + name: lighttpd + state: restarted + enabled: yes +