From 12cf22b1a8d9ad23809ad8048119a6920cbb9675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 7 Dec 2021 15:39:14 +0000 Subject: roles: Add httpd roles --- roles/httpd/tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/httpd/tasks/main.yml (limited to 'roles/httpd/tasks') diff --git a/roles/httpd/tasks/main.yml b/roles/httpd/tasks/main.yml new file mode 100644 index 0000000..a272afa --- /dev/null +++ b/roles/httpd/tasks/main.yml @@ -0,0 +1,19 @@ +- name: retrieve all configuration files + find: + path: "{{ httpd_configuration_dir }}" + patterns: "*.conf" + register: configuration_files + +- name: generate httpd configuration + template: + src: httpd.conf.j2 + dest: "{{ httpd_configuration_file }}" + owner: 0 + group: 0 + mode: 0644 + +- name: enable and restart httpd + service: + name: httpd + state: restarted + enabled: true -- cgit v1.2.3