summaryrefslogtreecommitdiff
path: root/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2')
-rw-r--r--roles/preseed/templates/preseed_ubuntu-xenial.cfg.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2 b/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
index 2096c757..7c78b746 100644
--- a/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
+++ b/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
@@ -138,7 +138,7 @@ d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \
lvremove -f {{ hostvars[hostname].host_name }}/dummy; \
in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \
- in-target bash -c "passwd -d root && passwd -l root"; \
+ in-target bash -c "systemctl mask systemd-resolved.service"; \
in-target bash -c "sed -e 's/^allow-hotplug/auto/' -i /etc/network/interfaces"; \
{% if preseed_force_net_ifnames_policy is defined %}
mkdir -p /target/etc/systemd/network; \
@@ -146,6 +146,7 @@ d-i preseed/late_command string \
in-target bash -c "echo 'NamePolicy={{ preseed_force_net_ifnames_policy }}' >> /etc/systemd/network/90-namepolicy.link"; \
in-target bash -c "update-initramfs -u"; \
{% endif %}
+ in-target bash -c "passwd -d root && passwd -l root"; \
{% if hostvars[hostname].ansible_port is defined %}
in-target bash -c "sed -e 's/^\(\s*#*\s*Port.*\)/Port {{ hostvars[hostname].ansible_port }}/' -i /etc/ssh/sshd_config"; \
{% endif %}