blob: ccfdfae3a86befa67c1f09856ca0936ea98ff2e1 [file] [log] [blame]
Zack Williams275e48b2017-03-24 12:16:00 -07001---
2# apache-proxy/tasks/main.yml
3
4- name: Install Apache
5 apt:
6 name: "{{ item }}"
7 update_cache: yes
8 cache_valid_time: 3600
9 with_items:
10 - apache2
11 - apache2-utils
12
13- name: Enable Apache2 Modules
14 apache2_module:
15 name: "{{ item }}"
16 notify: reload apache2
17 with_items:
18 - proxy
19 - proxy_http
20 - proxy_wstunnel
21 - rewrite
22 - headers
23
24- name: Apache configuration for CORD sites
25 copy:
26 src: files/cord-http.conf
27 dest: /etc/apache2/conf-available/cord-http.conf
28 owner: root
29 group: root
30 mode: 0644
31 notify: reload apache2
32
33- name: Enable CORD Apache Configuration
34 command: a2enconf cord-http
35 register: en_cord_http
36 changed_when: en_cord_http.stdout.find('already enabled') == -1
37 notify: reload apache2
38