Skip to content

Commit e6aaa29

Browse files
authored
Update servers_config.j2
1 parent 6092d63 commit e6aaa29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inventories/custom/osseclab/templates/servers_config.j2

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ rm -f /etc/machine-id
22
systemd-machine-id-setup
33
hostnamectl set-hostname {{ hostname }}
44
echo {{ hostname }} > /etc/hostname
5+
sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/g' /etc/ssh/sshd_config
56
{% for interface in interfaces %}
67
nmcli c mod "{{ interface['id'] }}" ipv4.method manual ipv4.addresses {{ interface['ipv4_address'] }}
78
nmcli c mod "{{ interface['id'] }}" ipv4.gateway {{ interface['ipv4_gateway'] }}

0 commit comments

Comments
 (0)