linuxinstaller/cubic/configure-preseed.yml

35 lines
847 B
YAML
Raw Normal View History

2024-10-05 19:16:17 +02:00
# 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:
2024-10-18 19:50:12 +02:00
src: autoinstall.ks.j2
dest: generated/autoinstall-{{ item.boot_entry_name }}.ks
2024-10-05 19:16:17 +02:00
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