remove check ssh root
This commit is contained in:
1
eval.sh
1
eval.sh
@@ -9,5 +9,4 @@ fileMustContain /etc/passwd "epsi"
|
|||||||
fileMustContain /etc/shadow "epsi"
|
fileMustContain /etc/shadow "epsi"
|
||||||
fileMustExist /srv/inventaire.txt
|
fileMustExist /srv/inventaire.txt
|
||||||
fileMustContain ~root/.bash_history vi
|
fileMustContain ~root/.bash_history vi
|
||||||
fileMustContain /etc/ssh/sshd_config "permitrootlogin no"
|
|
||||||
pkgInstalled sudo
|
pkgInstalled sudo
|
||||||
|
|||||||
2
eval.yml
2
eval.yml
@@ -10,7 +10,7 @@
|
|||||||
- name: insert header
|
- name: insert header
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ result_file }}"
|
path: "{{ result_file }}"
|
||||||
line: "machine\tuser\tmotd\tuser epsi\tpassword epsi\tinventaire reseau\tpractice done\tssh root off\tsudo installed"
|
line: "machine\tuser\tmotd\tuser epsi\tpassword epsi\tinventaire reseau\tpractice done\tsudo installed"
|
||||||
state: present
|
state: present
|
||||||
create: true
|
create: true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user