Set-OPS — moteur d'ecosystemes numeriques souverains (Alliance Boreale)
This commit is contained in:
commit
3dd3f43ad8
308 changed files with 13649 additions and 0 deletions
3
roles/systemd_ssh_auto/README.md
Normal file
3
roles/systemd_ssh_auto/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Rôle systemd_ssh_auto
|
||||
|
||||
Désactive systemd.ssh_auto pour éviter le bruit SSH/VSOCK.
|
||||
2
roles/systemd_ssh_auto/defaults/main.yml
Normal file
2
roles/systemd_ssh_auto/defaults/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
systemd_ssh_auto_disable: true
|
||||
4
roles/systemd_ssh_auto/handlers/main.yml
Normal file
4
roles/systemd_ssh_auto/handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- name: Update grub
|
||||
ansible.builtin.command: update-grub
|
||||
changed_when: true
|
||||
17
roles/systemd_ssh_auto/tasks/main.yml
Normal file
17
roles/systemd_ssh_auto/tasks/main.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- 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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# Managed by Ansible — Set-OPS
|
||||
GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX} systemd.ssh_auto=no"
|
||||
Loading…
Reference in a new issue