Commit e047577f authored by Tharyrok's avatar Tharyrok
Browse files

Merge branch '7-prevent-password-removal-of-root-for-proxmox-servers' into 'main'

Resolve "Prevent password removal of root for Proxmox servers"

Closes #7

See merge request !22
parents c8652260 24f83812
Pipeline #237 passed with stage
in 1 minute and 10 seconds
......@@ -92,3 +92,4 @@ UsePAM no
UsePrivilegeSeparation sandbox
UseDNS no
MaxAuthTries 3
......@@ -2,7 +2,9 @@
- name: Installation de sshguard
ansible.builtin.package:
name: sshguard
name:
- nftables
- sshguard
state: present
- name: Vérification de la présence de la configuration de sshguard
......
......@@ -24,4 +24,5 @@
- jq
- dbus
- safe-rm
- bash-completion
state: present
......@@ -15,6 +15,18 @@
shell: /bin/bash
state: present
- name: test si l'hote est un proxmox
stat:
path: /etc/pve
register: pve_dirs
- name: supprission du mots de pass root
user:
name: root
password: '*'
when: not pve_dirs.stat.exists
no_log: true
- name: Ajout des utilisateurs et de leurs clés SSH
include_tasks: user.yml
loop: "{{ users }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment