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.
common/tasks/main.yml

26 lines
464 B
YAML

- name: "Upgrade to the latest packages"
apt:
upgrade: "dist"
autoremove: "yes"
update_cache: yes
- name: "Install packages"
apt:
name: "{{ apt_packages }}"
state: "present"
- name: "Allow tcp traffic on defined ports"
ufw:
rule: "allow"
port: 22
proto: "tcp"
- name: "Allow udp traffic on defined ports"
ufw:
rule: "allow"
port: 60001:60099
proto: "udp"
- name: "Lock root user"
command: "passwd -l root"