summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2017-08-09 21:09:35 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2017-08-09 21:09:35 +0200
commitc8e5bed6d0aa1fa536d13ed6e23c22733e6545bd (patch)
tree7acfbeb980952f96a2ef853ef1bc3e5f659571c0
parent754d95cecc1bfe03c1ac8a68629ca40b8989182e (diff)
downloadplaybooks-ansible-c8e5bed6d0aa1fa536d13ed6e23c22733e6545bd.tar.gz
playbooks-ansible-c8e5bed6d0aa1fa536d13ed6e23c22733e6545bd.tar.xz
playbooks-ansible-c8e5bed6d0aa1fa536d13ed6e23c22733e6545bd.zip
fix rkhunter warning
-rw-r--r--roles/common/tasks/ssh.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/common/tasks/ssh.yml b/roles/common/tasks/ssh.yml
index c284e2d..2347285 100644
--- a/roles/common/tasks/ssh.yml
+++ b/roles/common/tasks/ssh.yml
@@ -2,3 +2,9 @@
lineinfile: dest=/etc/ssh/sshd_config state=present backrefs=yes regexp="^PasswordAuthentication yes"
line="PasswordAuthentication no"
notify: restart sshd
+
+- name: Décommenter option par défaut
+ lineinfile: dest=/etc/ssh/sshd_config state=present backrefs=yes
+ regexp="^#PermitRootLogin yes"
+ line="PermitRootLogin yes"
+ notify: restart sshd