From 47725621a7d36abed93a288e729a03335733bb84 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Wed, 9 Feb 2022 11:18:43 -0500 Subject: [PATCH] add file-host container --- all.yml | 3 +++ roles/file-host/tasks/main.yml | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 roles/file-host/tasks/main.yml 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 +