cubic-linuxmint/ansible/configure-preseed.yml
2024-10-05 18:10:30 +02:00

34 lines
841 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: libretic.ks.j2
dest: generated/libretic-{{ 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