summaryrefslogtreecommitdiff
path: root/roles/installer
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-06 17:11:26 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-06 17:11:26 +0200
commit82737ffb24ade9ba04fc55a216ce0f7a194cfc43 (patch)
treec98911bef7baffc85ef520b7ff9c11b835ab2eb0 /roles/installer
parentch-equinox-ws: increase size of home to 400GB (diff)
ubuntu installer: cleanup sshd config tainted by stupid installer
Diffstat (limited to 'roles/installer')
-rw-r--r--roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j23
1 files changed, 3 insertions, 0 deletions
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: