Commit 5d9ea999 authored by Rafael Monnerat's avatar Rafael Monnerat

restart ssh service if configuration changed

parent 3874d032
---
- name: restart ssh
service: name=ssh state=restarted
......@@ -23,6 +23,8 @@
- name: update /etc/ssh/sshd_config
lineinfile: dest=/etc/ssh/sshd_config regexp="^PermitRootLogin (?!no)" line="PermitRootLogin no"
- name: update /etc/ssh/sshd_config
lineinfile: dest=/etc/ssh/sshd_config line="PermitRootLogin no"
notify:
- restart ssh
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment