diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-01-01 13:26:11 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-01-01 13:26:11 +0100 |
commit | e5a65b550c719f427e0bb46f2e3149092b9e6285 (patch) | |
tree | ad5cbf5cac81b49e104ff0ffb5711e37e7f70285 /roles/httpd/tasks | |
parent | d5175b4fb930f1ca48e514a4ab8080f050d4c6bc (diff) | |
download | rules-e5a65b550c719f427e0bb46f2e3149092b9e6285.tar.gz |
refactor(roles/httpd): merge httpd roles
Diffstat (limited to 'roles/httpd/tasks')
-rw-r--r-- | roles/httpd/tasks/main.yml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/roles/httpd/tasks/main.yml b/roles/httpd/tasks/main.yml index f946044..584ae0b 100644 --- a/roles/httpd/tasks/main.yml +++ b/roles/httpd/tasks/main.yml @@ -1,10 +1,34 @@ --- +- name: create httpd directory + ansible.builtin.file: + path: "{{ httpd_configuration_dir }}" + state: directory + owner: 0 + group: 0 + mode: "0644" + +- name: create passwords directory + ansible.builtin.file: + path: "{{ httpd_passwords_dir }}" + state: directory + owner: "{{ httpd_user }}" + group: "{{ httpd_group }}" + mode: "0700" + +- name: create sites directory + ansible.builtin.file: + path: "{{ httpd_sites_dir }}" + state: directory + owner: 0 + group: 0 + mode: "0755" + - name: retrieve all configuration files ansible.builtin.find: path: "{{ httpd_configuration_dir }}" patterns: "*.conf" - register: configuration_files + register: httpd_configuration_files - name: generate httpd configuration ansible.builtin.template: |