Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
24 lines
559 B
YAML
24 lines
559 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 }}"
|
|
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 }}"
|
|
notify: reload nginx
|
|
tags:
|
|
- nginx
|
|
- ips
|