Skip to content

Commit bcddb3a

Browse files
committed
Also configure for non-ssl vhost
1 parent 5af531b commit bcddb3a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/roles/httpd/tasks/external_auth/cleanup.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
---
22
- name: Remove external authentication configuration
33
ansible.builtin.file:
4-
path: /etc/httpd/conf.d/05-foreman-ssl.d/external_auth.conf
4+
path: "/etc/httpd/conf.d/05-{{ item }}.d/external_auth.conf"
55
state: absent
66
notify:
77
- Restart httpd
8+
loop:
9+
- foreman
10+
- foreman-ssl
811

912
- name: Remove Apache module configuration files for IPA authentication
1013
ansible.builtin.file:

src/roles/httpd/tasks/external_auth/ipa.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,20 @@
7272

7373
- name: Create directory for Apache configuration fragments
7474
ansible.builtin.file:
75-
path: /etc/httpd/conf.d/05-foreman-ssl.d
75+
path: /etc/httpd/conf.d/05-{{ item }}.d
7676
state: directory
7777
mode: "0755"
78+
loop:
79+
- foreman
80+
- foreman-ssl
7881

7982
- name: Deploy external authentication configuration
8083
ansible.builtin.template:
8184
src: external_auth.conf.j2
82-
dest: /etc/httpd/conf.d/05-foreman-ssl.d/external_auth.conf
85+
dest: /etc/httpd/conf.d/05-{{ item }}.d/external_auth.conf
8386
mode: "0644"
8487
notify:
8588
- Restart httpd
89+
loop:
90+
- foreman
91+
- foreman-ssl

0 commit comments

Comments
 (0)