blob: a8b4f2b1bb5be0b2811b9f88fdf6a2cfcd52fd10 [file] [log] [blame]
David K. Bainbridge49b75ef2016-08-24 15:24:15 -07001---
2
3# If using a MAAS based POD deployment then copy over an apache configuration
4# that forwards to the various UIs
5- name: Ensure CORD Apache Configuration
6 become: yes
7 copy:
8 src: files/cord-http.conf
9 dest: /etc/apache2/conf-available/cord-http.conf
10 owner: root
11 group: root
12 mode: 0644
13 notify: reload apache2
14 when: on_maas
15
16- name: Ensure Modules
17 become: yes
18 command: a2enmod {{ item }}
19 register: mod_proxy
20 changed_when: mod_proxy.stdout.find('already enabled') == -1
21 notify: reload apache2
22 when: on_maas
23 with_items:
24 - proxy
25 - proxy_http
26 - proxy_wstunnel
27 - rewrite
28
29- name: Enable CORD Apache Configuration
30 become: yes
31 command: a2enconf cord-http
32 register: en_cord_http
33 changed_when: en_cord_http.stdout.find('already enabled') == -1
34 notify: reload apache2
35 when: on_maas