b776fc3da2
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.
11 lines
258 B
YAML
11 lines
258 B
YAML
---
|
|
- name: add IP addresses to private IP whitelist
|
|
lineinfile:
|
|
dest: /etc/nginx/snippets/ipaddr_whitelist
|
|
line: "allow {{ item }};"
|
|
state: present
|
|
with_items: "{{ nginx_ipaddr_whitelist_present }}"
|
|
notify: reload nginx
|
|
tags
|
|
- nginx
|