diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-12 17:32:53 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-12 17:32:53 +0200 |
commit | a355ee21c15e915f394952abe76703d7865c991b (patch) | |
tree | 468e5b6da5d9833532e51760c29a69cedb641f66 /roles/httpd_pre/tasks | |
parent | b1f371ec9d587e3727e85afe34473ed154d1fc48 (diff) | |
download | rules-a355ee21c15e915f394952abe76703d7865c991b.tar.gz |
feat(roles/httpd_pre): add httpd_pre role
Diffstat (limited to 'roles/httpd_pre/tasks')
-rw-r--r-- | roles/httpd_pre/tasks/main.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/httpd_pre/tasks/main.yml b/roles/httpd_pre/tasks/main.yml new file mode 100644 index 0000000..d1760db --- /dev/null +++ b/roles/httpd_pre/tasks/main.yml @@ -0,0 +1,25 @@ +--- + +- name: create httpd directory + ansible.builtin.file: + path: "{{ httpd_pre__configuration_dir }}" + state: directory + owner: 0 + group: 0 + mode: "0644" + +- name: create passwords directory + ansible.builtin.file: + path: "{{ httpd_pre__passwords_dir }}" + state: directory + owner: "{{ httpd_pre__user }}" + group: "{{ httpd_pre__group }}" + mode: "0700" + +- name: create sites directory + ansible.builtin.file: + path: "{{ httpd_pre__sites_dir }}" + state: directory + owner: 0 + group: 0 + mode: "0755" |