--- - name: Déployer le paramètre GRUB pour désactiver systemd.ssh_auto ansible.builtin.template: src: 99-setops-systemd-ssh-auto.cfg.j2 dest: /etc/default/grub.d/99-setops-systemd-ssh-auto.cfg owner: root group: root mode: "0644" when: systemd_ssh_auto_disable | bool notify: Update grub - name: Supprimer le paramètre si désactivé ansible.builtin.file: path: /etc/default/grub.d/99-setops-systemd-ssh-auto.cfg state: absent when: not (systemd_ssh_auto_disable | bool) notify: Update grub