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

40 lines
713 B
YAML
Raw Normal View History

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"
2021-08-17 22:29:04 +02:00
proto: "tcp"
2021-10-25 12:50:13 +02:00
- name: "Allow udp traffic on defined ports"
ufw:
rule: "allow"
port: 60001:60099
proto: "udp"
2021-10-25 13:32:04 +02:00
- name: "Enable UFW"
ufw:
state: "enabled"
2021-08-17 22:29:04 +02:00
- name: "Lock root user"
command: "passwd -l root"
2021-10-25 13:22:16 +02:00
- name: "Download Pip"
2021-10-25 13:26:46 +02:00
get_url:
2021-10-25 13:22:16 +02:00
url: "https://bootstrap.pypa.io/get-pip.py"
dest: "/tmp/get-pip.py"
mode: "0644"
- name: "Install pip"
command:
cmd: "python3 /tmp/get-pip.py"