17 lines
546 B
YAML
17 lines
546 B
YAML
---
|
|
- name: Déployer le paramètre GRUB pour désactiver systemd.ssh_auto
|
|
ansible.builtin.template:
|
|
src: 99-chezlepro-systemd-ssh-auto.cfg.j2
|
|
dest: /etc/default/grub.d/99-chezlepro-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-chezlepro-systemd-ssh-auto.cfg
|
|
state: absent
|
|
when: not (systemd_ssh_auto_disable | bool)
|
|
notify: Update grub
|