get rid of fail2ban, it doesnt actually help
[ansible.git] / roles / apache / tasks / main.yml
1 - name: install apache
2   apt: name=apache2 state=latest
3 - name: enable apache
4   service: name=apache2 enabled=yes
5 # config
6 - name: enable modules
7   apache2_module:
8     state: present
9     name: "{{ item }}"
10   loop:
11   - headers
12   - ssl
13   - macro
14   notify: apache
15 - name: install shared config files
16   copy:
17     dest: /etc/apache2/conf-available/{{ item }}
18     src: files/{{ item }}
19   loop:
20   - ssl.conf
21   - acme-challenge.conf
22   - php5.conf
23   - security.conf
24   - other-vhosts-access-log.conf
25   notify: apache
26 - name: enable config files
27   command: a2enconf {{ item }}
28   args:
29     creates: /etc/apache2/conf-enabled/{{ item }}.conf
30   loop:
31   - ssl
32 - name: install default site
33   template:
34     dest: /etc/apache2/sites-available/000-default.conf
35     src: templates/000-default.conf
36   notify: apache