playbook.yml aktualisiert

This commit is contained in:
az 2024-05-08 12:23:37 +02:00
parent 3d93485070
commit 59442ac92b
1 changed files with 5 additions and 2 deletions

View File

@ -45,12 +45,14 @@
- name: Allow all access to tcp port 123 - name: Allow all access to tcp port 123
ufw: ufw:
rule: allow rule: allow
port: '123' port: '3142'
direction: '{{ item }}' direction: '{{ item }}'
with_items: with_items:
- in - in
- out - out
when: config_ufw when: config_ufw
environment:
PATH: /sbin:{{ ansible_env.PATH }}
- name: Allow SSH-Access to some servers - name: Allow SSH-Access to some servers
ufw: ufw:
@ -103,7 +105,8 @@
- { direction: 'out', destination: '10.0.2.243/32' } - { direction: 'out', destination: '10.0.2.243/32' }
- { direction: 'in', destination: '10.16.1.3/32' } - { direction: 'in', destination: '10.16.1.3/32' }
- { direction: 'out', destination: '10.16.1.3/32' } - { direction: 'out', destination: '10.16.1.3/32' }
environment:
PATH: /sbin:{{ ansible_env.PATH }}
- name: Allow DNS-Access to some servers - name: Allow DNS-Access to some servers
ufw: ufw:
rule: allow rule: allow