Update/fix 'installbox' configuration.

This commit is contained in:
Andreas B. Mundt 2018-06-04 18:00:25 +03:00
parent b1af7d31ec
commit e37f9fa03d
7 changed files with 55 additions and 27 deletions

View file

@ -1,12 +1,23 @@
- name: install tftp-netboot-installer packages
- name: add stretch-backports
apt_repository:
repo: deb http://deb.debian.org/debian/ stretch-backports main
state: present
- name: install di-netboot-assistant from backports
apt:
name:
- di-netboot-assistant
default_release: stretch-backports
update_cache: yes
- name: add installer package
apt:
name:
- debian-installer-9-netboot-amd64
- name: bind mount images
mount:
name: "{{ tftp_root }}/di-netboot-pkg/"
path: "{{ tftp_root }}/d-i/n-pkg/"
src: /usr/lib/debian-installer/
fstype: none
opts: bind
@ -14,6 +25,8 @@
state: present
register: fstab
- file: path="{{ tftp_root }}/d-i/n-pkg/" state=directory recurse=yes
- name: Reload fstab
command: mount -a
when: fstab.changed