playbook.yml aktualisiert

This commit is contained in:
az 2024-05-08 10:26:25 +02:00
parent 1e4f3637b9
commit b51ea0b660
1 changed files with 10 additions and 2 deletions

View File

@ -15,6 +15,8 @@
with_items:
- { direction: 'incoming', policy: 'deny' }
- { direction: 'outgoing', policy: 'deny' }
environment:
PATH: /sbin:{{ ansible_env.PATH }}
# disable ipv6
- lineinfile:
@ -25,7 +27,8 @@
- name: Enable ufw logging
ufw: logging=off
environment:
PATH: /sbin:{{ ansible_env.PATH }}
- name: Commenting a line.
replace:
path: /etc/ufw/before.rules
@ -198,7 +201,12 @@
- juk
autoremove: yes
state: absent
- name: intall some prior installed packages
apt:
name:
- htop
- nmap
state: latest
- name: Enable ufw
ufw: state=enabled