From b82ce3b5067dc6a591ae654e04af86db4494d807 Mon Sep 17 00:00:00 2001 From: az Date: Tue, 7 May 2024 22:58:58 +0200 Subject: [PATCH] playbook.yml aktualisiert --- playbook.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: