Mise à jour de 'ct-ansible/playbook.yml'

This commit is contained in:
bruno.debastiani 2021-11-24 09:51:33 +01:00
parent 9383581c66
commit ac6f1eb3e3

View File

@ -4,11 +4,10 @@
become_user: root
tasks:
- name: création de sioadm
- name: creation de sioadm
user:
name: sioadm
state: present
generate_ssh_key:yes
groups: sudo
append: yes
password: "{{ 'sioadm' | password_hash('sha512') }}"
@ -26,7 +25,7 @@
- name: ecriture fichier resolv.conf
template:
src: erlov.conf
src: resolv.conf
dest: "/etc/resolv.conf"
- name: configuration sshd_config
@ -35,5 +34,3 @@
regexp: '^PermitRootLogin (yes|without-password)'
regexp: '^PermitRootLogin (yes|without-password|prohibit-password)'
replace: "PermitRootLogin no"
notify: reload sshd
when: evolinux_root_disable_ssh