diff --git a/playbook.yml b/playbook.yml index 35ec51f..db99fde 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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: