File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Drop-in config for SSH that disables things we don't want.
2
+
3
+ # Already off by DO initial setup, but be explicit.
4
+ PasswordAuthentication no
5
+
6
+ # Enabled by 50-redhat.conf, but we don't have any X programs.
7
+ X11Forwarding no
Original file line number Diff line number Diff line change 59
59
# Firewall setup
60
60
# ##############
61
61
- name : Setup firewall
62
- tags : firewal
62
+ tags : firewall
63
63
block :
64
64
- name : Enable firewall
65
65
ansible.builtin.systemd :
68
68
state : started
69
69
70
70
- name : Allow SSH on firewall
71
+ tags : ssh
71
72
ansible.posix.firewalld :
72
73
service : ssh
73
74
permanent : true
91
92
offline : true
92
93
state : enabled
93
94
95
+ # SSH configuration
96
+ # #################
97
+ - name : Configure SSH
98
+ tags : ssh
99
+ ansible.builtin.copy :
100
+ src : sshd_config
101
+ dest : /etc/ssh/sshd_config.d/99-matplotlib.conf
102
+
94
103
# fail2ban setup
95
104
# ##############
96
105
- name : Setup fail2ban
You can’t perform that action at this time.
0 commit comments