2018-10-29 21:53:46 +01:00
|
|
|
---
|
2018-11-02 18:15:17 +01:00
|
|
|
|
2018-10-29 21:53:46 +01:00
|
|
|
- name: add IP addresses to private IP whitelist
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2018-10-29 21:53:46 +01:00
|
|
|
dest: /etc/apache2/ipaddr_whitelist.conf
|
|
|
|
line: "Require ip {{ item }}"
|
|
|
|
state: present
|
2021-05-04 14:18:40 +02:00
|
|
|
loop: "{{ apache_ipaddr_whitelist_present }}"
|
2018-10-29 21:53:46 +01:00
|
|
|
notify: reload apache
|
|
|
|
tags:
|
2018-11-02 18:15:17 +01:00
|
|
|
- apache
|
|
|
|
- ips
|
|
|
|
|
|
|
|
- name: remove IP addresses from private IP whitelist
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2018-11-02 18:15:17 +01:00
|
|
|
dest: /etc/apache2/ipaddr_whitelist.conf
|
|
|
|
line: "Require ip {{ item }}"
|
|
|
|
state: absent
|
2021-05-04 14:18:40 +02:00
|
|
|
loop: "{{ apache_ipaddr_whitelist_absent }}"
|
2018-11-02 18:15:17 +01:00
|
|
|
notify: reload apache
|
|
|
|
tags:
|
|
|
|
- apache
|
|
|
|
- ips
|