From 82a63c4c989d6a61a0b6dc63b2402afbad520932 Mon Sep 17 00:00:00 2001 From: noxil Date: Tue, 16 Jul 2024 02:05:57 +0200 Subject: [PATCH] website: add task for webroot --- play.yml | 1 + roles/ff_website/tasks/main.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 roles/ff_website/tasks/main.yml diff --git a/play.yml b/play.yml index cc1de31..4093b28 100644 --- a/play.yml +++ b/play.yml @@ -61,3 +61,4 @@ become: true roles: - caddy + - ff_website diff --git a/roles/ff_website/tasks/main.yml b/roles/ff_website/tasks/main.yml new file mode 100644 index 0000000..deb73e1 --- /dev/null +++ b/roles/ff_website/tasks/main.yml @@ -0,0 +1,12 @@ +--- + +- name: Create directories + ansible.builtin.file: + state: directory + path: "{{ item }}" + owner: www-data + group: www-data + mode: "0770" + with_items: + - /srv/www/berlin.freifunk.net + - /srv/www/web.berlin.freifunk.net