system-config/playbooks/roles/apache-ua-filter/tasks/main.yaml

34 lines
616 B
YAML

- name: Install apache2
apt:
name:
- apache2
- apache2-utils
state: present
- name: Apache rewrite module
apache2_module:
state: present
name: rewrite
notify: Restart apache2
- name: Apache macro module
apache2_module:
state: present
name: macro
notify: Restart apache2
- name: Apache headers module
apache2_module:
state: present
name: headers
notify: Restart apache2
- name: Copy apache UA filter
copy:
src: ua-filter.conf
dest: /etc/apache2/conf-enabled/ua-filter.conf
owner: root
group: root
mode: 0644
notify: Reload apache2