playbook.yml aktualisiert

This commit is contained in:
az 2024-05-07 22:58:58 +02:00
parent eaf3e1efdd
commit b82ce3b506
1 changed files with 12 additions and 0 deletions

View File

@ -70,6 +70,18 @@
- { direction: 'in', destination: '162.55.5.40/32' }
- { direction: 'out', destination: '162.55.5.40/32' }
- name: Allow DNS-Access to some servers
ufw:
rule: allow
direction: '{{ item.direction }}'
dest: '{{ item.destination }}'
port: '53'
with_items:
- { direction: 'in', destination: '10.0.0.1/32' }
- { direction: 'out', destination: '10.0.0.1/32' }
- { direction: 'in', destination: '10.16.1.1/32' }
- { direction: 'out', destination: '10.16.1.1/32' }
- name: Allow dns
ufw: rule={{ item.rule }} port={{ item.port }}
with_items: