2 apt: name=apache2,python-netaddr state=latest
4 service: name=apache2 enabled=yes
15 - name: disable modules
22 - name: install log anonymization script
24 dest: /etc/apache2/log-anon
28 - name: install shared config files
30 dest: /etc/apache2/conf-available/{{ item }}
31 src: templates/{{ item }}
39 - name: enable config files
40 command: a2enconf {{ item }}
42 creates: /etc/apache2/conf-enabled/{{ item }}.conf
48 - name: disable config files
49 command: a2disconf {{ item }}
51 removes: /etc/apache2/conf-enabled/{{ item }}.conf
53 - other-vhosts-access-log
56 - name: install default site
58 dest: /etc/apache2/sites-available/000-default.conf
59 src: templates/000-default.conf
61 # IPv6 autconf issues: DAD makes addresses appear but unusable, which breaks services startup
62 - name: tweak apache systemd unit (create dir)
63 file: path=/etc/systemd/system/apache2.service.d state=directory
64 - name: tweak apache systemd unit
66 dest: /etc/systemd/system/apache2.service.d/override.conf
69 After=network-online.target
70 Wants=network-online.target
73 - name: sysconfig to disable DAD
75 dest: /etc/sysctl.d/50-no-dad.conf
77 # Disable DAD so network-online.target works for IPv6
78 net.ipv6.conf.all.accept_dad=0