This repository has been archived on 2021-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-17 22:29:04 +02:00
|
|
|
- name: "Upgrade to the latest packages"
|
|
|
|
apt:
|
|
|
|
upgrade: "dist"
|
|
|
|
autoremove: "yes"
|
2021-08-24 21:30:26 +02:00
|
|
|
update_cache: yes
|
2021-08-17 22:29:04 +02:00
|
|
|
|
|
|
|
- name: "Install packages"
|
|
|
|
apt:
|
|
|
|
name: "{{ apt_packages }}"
|
|
|
|
state: "present"
|
|
|
|
|
|
|
|
- name: "Allow tcp traffic on defined ports"
|
|
|
|
ufw:
|
|
|
|
rule: "allow"
|
|
|
|
port: 22
|
|
|
|
proto: "tcp"
|
|
|
|
|
|
|
|
- name: "Lock root user"
|
|
|
|
command: "passwd -l root"
|
|
|
|
|
|
|
|
- name: "Blacklist the floppy driver module"
|
|
|
|
kernel_blacklist:
|
|
|
|
name: "floppy"
|
|
|
|
state: "present"
|
|
|
|
notify: "reconfigure initramfs"
|
|
|
|
|
|
|
|
- name: "Unload the floppy driver module"
|
|
|
|
modprobe:
|
|
|
|
name: "floppy"
|
|
|
|
state: "absent"
|