From 82737ffb24ade9ba04fc55a216ce0f7a194cfc43 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 6 Sep 2021 17:11:26 +0200 Subject: ubuntu installer: cleanup sshd config tainted by stupid installer --- roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/installer') diff --git a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 index e166a78f..763a03cb 100644 --- a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 +++ b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 @@ -215,8 +215,11 @@ autoinstall: - [ rm, -rf, /etc/cloud, /var/lib/cloud ] - [ apt-get, -y, -q, auto-remove ] - [ bash, -c, 'dpkg -l | grep "^rc" | awk "{ print(\$2) }" | xargs dpkg -P' ] + - [ sed, '/^PasswordAuthentication /d', -i, '/etc/ssh/sshd_config' ] {% if ubuntu_autoinstall_virtual_machine %} - [ poweroff ] +{% else %} + - [ reboot ] {% endif %} ssh: -- cgit v1.2.3