From 1e4f3637b9fe7c2efc2598b6d5c7da2e0a340a6c Mon Sep 17 00:00:00 2001 From: az Date: Wed, 8 May 2024 10:20:13 +0200 Subject: [PATCH] playbook.yml aktualisiert --- playbook.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/playbook.yml b/playbook.yml index e14826e..9e400d5 100644 --- a/playbook.yml +++ b/playbook.yml @@ -58,6 +58,8 @@ - { direction: 'in', destination: '162.55.5.40/32' } - { direction: 'out', destination: '162.55.5.40/32' } when: config_ufw + environment: + PATH: /sbin:{{ ansible_env.PATH }} - name: Allow https-Access to some servers ufw: rule: allow @@ -74,6 +76,8 @@ - { direction: 'in', destination: '162.55.5.40/32' } - { direction: 'out', destination: '162.55.5.40/32' } when: config_ufw + environment: + PATH: /sbin:{{ ansible_env.PATH }} - name: Allow DNS-Access to some servers ufw: @@ -87,13 +91,15 @@ - { direction: 'in', destination: '10.16.1.1/32' } - { direction: 'out', destination: '10.16.1.1/32' } when: config_ufw - + environment: + PATH: /sbin:{{ ansible_env.PATH }} - name: Allow dns ufw: rule={{ item.rule }} port={{ item.port }} with_items: - { rule: 'allow', port: '53'} when: config_ufw - + environment: + PATH: /sbin:{{ ansible_env.PATH }} - name: disable mounting of usb flash drives file: path: /media