Skip to content

Commit

Permalink
sshd is restarted to apply all the config changes + sshd validation i…
Browse files Browse the repository at this point in the history
…s enabled
  • Loading branch information
ruzickap committed Nov 13, 2016
1 parent e2e43b0 commit 7de7911
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/common_defaults/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: reload sshd
service: name={{ ssh_daemon }} state=reloaded
- name: restart sshd
service: name={{ ssh_daemon }} state=restarted

- name: reload snmpd
service: name=snmpd state=restarted
Expand Down
6 changes: 3 additions & 3 deletions ansible/roles/common_defaults/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
ClientAliveInterval 60
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
#validate: sshd -tf %s
notify: reload sshd
validate: sshd -tf %s
notify: restart sshd
tags:
- sshd

Expand All @@ -189,7 +189,7 @@
with_items:
- { regexp: '^PermitRootLogin', line: 'PermitRootLogin yes' }
- { regexp: '^PasswordAuthentication', line: 'PasswordAuthentication yes' }
notify: reload sshd
notify: restart sshd
tags:
- sshd

Expand Down

0 comments on commit 7de7911

Please sign in to comment.