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