summaryrefslogtreecommitdiff
path: root/roles/installer/debian/preseed/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/installer/debian/preseed/tasks/main.yml')
-rw-r--r--roles/installer/debian/preseed/tasks/main.yml22
1 files changed, 11 insertions, 11 deletions
diff --git a/roles/installer/debian/preseed/tasks/main.yml b/roles/installer/debian/preseed/tasks/main.yml
index 525ba848..e3ea660f 100644
--- a/roles/installer/debian/preseed/tasks/main.yml
+++ b/roles/installer/debian/preseed/tasks/main.yml
@@ -1,45 +1,45 @@
---
- name: Generate preseed file
template:
- src: "preseed_{{ preseed_template_name | default(install_distro + '-' + install_codename) }}.cfg.j2"
- dest: "{{ preseed_tmpdir }}/preseed.cfg"
+ src: "preseed_{{ debian_preseed_template_name | default(install_distro + '-' + install_codename) }}.cfg.j2"
+ dest: "{{ debian_preseed_tmpdir }}/preseed.cfg"
- name: Generate partmam early-command script
- when: not preseed_manual_partitioning
+ when: not debian_preseed_manual_partitioning
template:
src: "partman_early-command.sh.j2"
- dest: "{{ preseed_tmpdir }}/partman_early-command.sh"
+ dest: "{{ debian_preseed_tmpdir }}/partman_early-command.sh"
mode: 0755
- name: Generate authorized_keys file
authorized_key:
user: root
manage_dir: no
- path: "{{ preseed_tmpdir }}/authorized_keys"
+ path: "{{ debian_preseed_tmpdir }}/authorized_keys"
key: "{{ ssh_keys_root | join('\n') }}"
- name: force net interface name policy
- when: preseed_force_net_ifnames_policy is defined
+ when: debian_preseed_force_net_ifnames_policy is defined
block:
- name: prepare directories to force network interface name policy
file:
- path: "{{ preseed_tmpdir }}/etc/systemd/network"
+ path: "{{ debian_preseed_tmpdir }}/etc/systemd/network"
state: directory
- name: install link unit to force network interface name policy
copy:
- dest: "{{ preseed_tmpdir }}/etc/systemd/network/90-namepolicy.link"
+ dest: "{{ debian_preseed_tmpdir }}/etc/systemd/network/90-namepolicy.link"
content: |
[Match]
OriginalName=*
[Link]
- NamePolicy={{ preseed_force_net_ifnames_policy }}
+ NamePolicy={{ debian_preseed_force_net_ifnames_policy }}
- name: Inject files into initramfs
- shell: cpio -H newc -o | gzip -9 >> '{{ preseed_initrd }}'
+ shell: cpio -H newc -o | gzip -9 >> '{{ debian_preseed_initrd }}'
args:
- chdir: "{{ preseed_tmpdir }}"
+ chdir: "{{ debian_preseed_tmpdir }}"
stdin: |
preseed.cfg
partman_early-command.sh