- name: Installation des packages nécessaires ansible.builtin.package: name: "{{ required_packages }}" - name: Suppression des packages non souhaités ansible.builtin.package: name: "{{ remove_packages }}" state: absent - name: Installation des flatpak nécessaires community.general.flatpak: name: "{{ required_flatpak }}" method: system - name: Configuration Mintupdate ansible.builtin.file: path: "{{ item }}" owner: root group: root mode: u=rw,g=r,o=r state: touch modification_time: preserve access_time: preserve loop: - /var/lib/linuxmint/mintupdate-automatic-removals-enabled - /var/lib/linuxmint/mintupdate-automatic-upgrades-enabled - name: Configure GRUB_CMDLINE_LINUX_DEFAULT ansible.builtin.lineinfile: state: present dest: /etc/default/grub regexp: '^GRUB_CMDLINE_LINUX_DEFAULT=""$' line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"' notify: Update-grub - name: Configure GRUB options ansible.builtin.blockinfile: state: present path: /etc/default/grub marker: "# {mark} ANSIBLE MANAGED BLOCK: GRUB options" block: | GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT notify: Update-grub