Skip to content

Commit fbb356d

Browse files
committed
manage apache modules for debian
1 parent 00cfd98 commit fbb356d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/roles/httpd/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
when:
1616
- ansible_selinux.status == 'enabled'
1717

18+
- name: Enable required modules
19+
community.general.apache2_module:
20+
name: "{{ item }}"
21+
loop: "{{ httpd_modules }}"
22+
1823
- name: Disable welcome page
1924
ansible.builtin.file:
2025
path: "{{ httpd_conf_path }}/welcome.conf"

src/roles/httpd/vars/Debian.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ httpd_packages:
44
httpd_conf_path: /etc/apache2/conf-enabled
55
httpd_service: apache2
66
httpd_log_path: /var/log/apache2
7+
httpd_modules:
8+
- ssl
9+
- headers
10+
- proxy

src/roles/httpd/vars/RedHat.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ httpd_packages:
55
httpd_conf_path: /etc/httpd/conf.d
66
httpd_service: httpd
77
httpd_log_path: /var/log/httpd
8+
httpd_modules: []

0 commit comments

Comments
 (0)