18 lines
566 B
YAML
18 lines
566 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: chezlepro_disable_systemd_ssh_auto | 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 (chezlepro_disable_systemd_ssh_auto | bool)
|
||
|
|
notify: Update grub
|