linuxinstaller/cubic/configure-preseed.yml
2024-10-18 19:50:12 +02:00

34 lines
847 B
YAML

# code: language=ansible
- name: Configure preseed
hosts: localhost
gather_facts: false
vars_files:
- main.yml
tasks:
- name: Dossier generated
ansible.builtin.file:
path: generated
state: directory
mode: u=rwx,g=rx,o=rx
- name: Fichiers preseed
ansible.builtin.template:
src: autoinstall.ks.j2
dest: generated/autoinstall-{{ item.boot_entry_name }}.ks
mode: u=rw,g=r,o=r
with_items: "{{ preseed_versions }}"
vars:
diskdevice: "{{ item.diskdevice }}"
- name: Fichier grub.cfg
ansible.builtin.template:
src: grub.cfg.j2
dest: generated/grub.cfg
mode: u=rw,g=r,o=r
- name: Fichier live.cfg
ansible.builtin.template:
src: live.cfg.j2
dest: generated/live.cfg
mode: u=rw,g=r,o=r