From e6c678c0ebeed81601325dacc9943debb528345b Mon Sep 17 00:00:00 2001 From: az Date: Tue, 7 May 2024 22:49:26 +0200 Subject: [PATCH] playbook.yml aktualisiert --- playbook.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/playbook.yml b/playbook.yml index 7175e89..e941959 100644 --- a/playbook.yml +++ b/playbook.yml @@ -46,6 +46,8 @@ dest: '{{ item.destination }}' port: '22' with_items: + - { direction: 'in', destination: '10.0.0.1/32' } + - { direction: 'out', destination: '10.0.0.1/32' } - { direction: 'in', destination: '10.16.109.252/32' } - { direction: 'out', destination: '10.16.109.252/32' } - { direction: 'in', destination: '10.16.1.1/32' } @@ -59,6 +61,8 @@ dest: '{{ item.destination }}' port: '443' with_items: + - { direction: 'in', destination: '10.0.0.1/32' } + - { direction: 'out', destination: '10.0.0.1/32' } - { direction: 'in', destination: '10.16.109.252/32' } - { direction: 'out', destination: '10.16.109.252/32' } - { direction: 'in', destination: '10.16.1.1/32' } @@ -66,19 +70,11 @@ - { direction: 'in', destination: '162.55.5.40/32' } - { direction: 'out', destination: '162.55.5.40/32' } - - name: Enable ufw - ufw: state=enabled - - name: Allow dns ufw: rule={{ item.rule }} port={{ item.port }} with_items: - { rule: 'allow', port: '53'} - - - name: start ufw service - service: - name: ufw - state: restarted - name: purge some prior installed packages apt: @@ -116,3 +112,12 @@ - kicad-doc-de autoremove: yes state: absent + + + - name: Enable ufw + ufw: state=disabled + + - name: start ufw service + service: + name: ufw + state: restarted