2024-09-30 19:32:52 +02:00
|
|
|
#
|
2024-10-13 15:18:43 +02:00
|
|
|
# Ce playbook est à exécuter pour forcer la configuration au prochain démarrage
|
2024-09-30 19:32:52 +02:00
|
|
|
#
|
|
|
|
|
2024-10-13 15:18:43 +02:00
|
|
|
- name: Préparation de la configuration au prochain démarrage
|
2024-09-30 19:32:52 +02:00
|
|
|
hosts: localhost
|
|
|
|
vars_files:
|
|
|
|
- main.yml
|
|
|
|
tasks:
|
2024-10-02 08:33:59 +02:00
|
|
|
- name: Firstboot
|
2024-10-05 13:09:45 +02:00
|
|
|
ansible.builtin.file:
|
2024-10-18 19:50:12 +02:00
|
|
|
src: /opt/linuxinstaller/linuxinstaller-firstboot.service
|
|
|
|
dest: /etc/systemd/system/linuxinstaller-firstboot.service
|
2024-10-05 13:09:45 +02:00
|
|
|
state: link
|
2024-10-02 08:33:59 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2024-10-05 13:09:45 +02:00
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
|
|
|
|
- name: Active firstboot
|
|
|
|
ansible.builtin.service:
|
2024-10-18 19:50:12 +02:00
|
|
|
name: linuxinstaller-firstboot
|
2024-10-05 13:09:45 +02:00
|
|
|
enabled: true
|
2024-10-19 13:00:50 +02:00
|
|
|
|
|
|
|
- name: Ajoute extra_packages
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ extra_packages }}"
|
|
|
|
when: extra_packages is defined
|