This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/base.yml

31 lines
1.2 KiB
YAML
Raw Normal View History

---
- hosts: all
vars:
2020-05-27 17:38:21 +00:00
apt:
packages:
- { package: "iptables-persistent", state: present }
- { package: "netfilter-persistent", state: present }
- { package: "sed", state: present }
- { package: "git", state: present }
- { package: "zsh", state: present }
- { package: "vim", state: present }
- { package: "sudo", state: present }
- { package: "iptables", state: present }
- { package: "fail2ban", state: present }
2020-05-27 17:38:21 +00:00
clean: true
upgrade: true
systemd:
services:
2020-05-31 18:27:29 +00:00
- { name: "netfilter-persistent", enabled: true, action: restarted }
- { name: "fail2ban", enabled: true, action: reloaded }
- { name: "ssh", enabled: true, action: reloaded }
2020-05-28 15:08:29 +00:00
vault:
2020-05-31 18:27:29 +00:00
roles:
- "common"
roles:
2020-05-28 15:08:29 +00:00
- vault
- apt
- common # This group relies too much on handlers, it's better to use it as it is
- fail2ban
- systemd