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