aboutsummaryrefslogtreecommitdiff
path: root/roles/icinga2/tasks/apache.yml
blob: bfc6a52adb8b59fc8581643a67c5761dd940acf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- name: Install index.html
  copy:
    src: index.html
    dest: /var/www/html/index.html
  become: yes
  notify: Restart apache

- name: Install site-config
  copy:
    src: 000-default.conf
    dest: /etc/apache2/sites-available/000-default.conf
  become: yes
  notify: Restart apache

- name: Install SSL site-config
  template:
    src: default-ssl.conf.j2
    dest: /etc/apache2/sites-available/default-ssl.conf
  become: yes
  notify: Restart apache

- name: Enable sites
  file:
    state: link
    path: '/etc/apache2/sites-enabled/{{ item }}'
    src: '../sites-available/{{ item }}'
  loop:
    - 000-default.conf
    - default-ssl.conf
  become: yes
  notify: Restart apache

- name: Enable apache mods
  file:
    state: link
    path: '/etc/apache2/mods-enabled/{{ item }}'
    src: '../mods-available/{{ item }}'
  loop:
    - ssl.conf
    - ssl.load
    - socache_shmcb.load
  become: yes
  notify: Restart apache