We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6092d63 commit e6aaa29Copy full SHA for e6aaa29
inventories/custom/osseclab/templates/servers_config.j2
@@ -2,6 +2,7 @@ rm -f /etc/machine-id
2
systemd-machine-id-setup
3
hostnamectl set-hostname {{ hostname }}
4
echo {{ hostname }} > /etc/hostname
5
+sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/g' /etc/ssh/sshd_config
6
{% for interface in interfaces %}
7
nmcli c mod "{{ interface['id'] }}" ipv4.method manual ipv4.addresses {{ interface['ipv4_address'] }}
8
nmcli c mod "{{ interface['id'] }}" ipv4.gateway {{ interface['ipv4_gateway'] }}
0 commit comments