linuxinstaller/ansible/firstboot.yml

28 lines
742 B
YAML
Raw Normal View History

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
ansible.builtin.file:
2024-10-18 19:50:12 +02:00
src: /opt/linuxinstaller/linuxinstaller-firstboot.service
dest: /etc/systemd/system/linuxinstaller-firstboot.service
state: link
2024-10-02 08:33:59 +02:00
owner: root
group: root
mode: u=rw,g=r,o=r
- name: Active firstboot
ansible.builtin.service:
2024-10-18 19:50:12 +02:00
name: linuxinstaller-firstboot
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