Compare commits
2 Commits
a829f24463
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ac6f1eb3e3 | |||
|
|
9383581c66 |
@@ -1,2 +1,2 @@
|
||||
[hotes]
|
||||
sioadm
|
||||
srv
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user