-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
94 lines (94 loc) · 2.17 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
- hosts: all
become: true
gather_facts: true
collections:
- devsec.hardening
- debops.debops
- debops.roles01
- debops.roles02
- debops.roles03
- community.general
- ansible.posix
roles:
- core
- locales
- apt_preferences
- apt_install
- keyring
- python
- unattended_upgrades
- ntp
- ferm
- fail2ban
- geerlingguy.docker
- geerlingguy.certbot
- ouroboros
- docker_mailserver
- ssh_hardening
- os_hardening
vars:
docker_mailserver_container_name: "mailserver"
# geerlingguy.docker
docker_add_repo: true
docker_install_compose: true
docker_daemon_options:
features:
buildkit: true
# geerlingguy.certbot
certbot_create_if_missing: true
certbot_create_method: standalone
certbot_create_standalone_stop_services: []
# debops
python__v3: true
python__v2: false
python__packages3:
- python3-dev
- python-is-python3
- python3-pip
- python3-setuptools
- python3-docker
apt_install__packages:
- micro
- cron
apt_install__default_alternatives:
- name: 'editor'
path: '/usr/bin/micro'
apt__install_recommends: false
apt__install_suggests: false
apt__nonfree: false
ntp__timezone: 'Etc/UTC'
locales__system_lang: 'en_US.UTF-8'
ferm__rules:
- name: 'ssh'
rules:
- dport: '22'
accept_any: true
- name: 'mailserver'
rules:
- dport: '25'
accept_any: true
- dport: '110'
accept_any: true
- dport: '143'
accept_any: true
- dport: '465'
accept_any: true
- dport: '587'
accept_any: true
- dport: '993'
accept_any: true
- dport: '995'
accept_any: true
- name: 'certbot'
rules:
- dport: '80'
accept_any: true
ferm__mark_portscan: true
# dev-sec
sysctl_overwrite:
net.ipv6.conf.all.disable_ipv6: 0
net.ipv6.conf.all.forwarding: 1
net.ipv4.conf.all.forwarding: 1
ufw_manage_defaults: false
sftp_enabled: true