ansible-roles/apache/tasks/ip_whitelist.yml
Patrick Marchand 3bcc357509 Make ip whitelist tasks more flexible
Now the list of whitelisted ip addresses can be updated simply by
including the specific tasks in an external playbook without polluting
our role list.

This change takes effect for nginx, apache and fail2ban.
2018-10-29 16:53:46 -04:00

10 lines
263 B
YAML

---
- name: add IP addresses to private IP whitelist
lineinfile:
dest: /etc/apache2/ipaddr_whitelist.conf
line: "Require ip {{ item }}"
state: present
with_items: "{{ apache_ipaddr_whitelist_present }}"
notify: reload apache
tags:
- apache