0a590b6679
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2670|11|2659|11|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/443//ansiblelint">Evolix » ansible-roles » unstable #443</a>
gitea/ansible-roles/pipeline/head This commit looks good
26 lines
621 B
YAML
26 lines
621 B
YAML
---
|
|
|
|
- name: add IP addresses to private IP whitelist
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/nginx/snippets/ipaddr_whitelist
|
|
line: "allow {{ item }};"
|
|
state: present
|
|
loop: "{{ nginx_ipaddr_whitelist_present }}"
|
|
when: not ansible_check_mode
|
|
notify: reload nginx
|
|
tags:
|
|
- nginx
|
|
- ips
|
|
|
|
- name: remove IP addresses from private IP whitelist
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/nginx/snippets/ipaddr_whitelist
|
|
line: "allow {{ item }};"
|
|
state: absent
|
|
loop: "{{ nginx_ipaddr_whitelist_absent }}"
|
|
when: not ansible_check_mode
|
|
notify: reload nginx
|
|
tags:
|
|
- nginx
|
|
- ips
|