no ssh restart - unclear error in ansible playbook run
This commit is contained in:
parent
851ad1bfd6
commit
8ca5d41755
@ -45,8 +45,8 @@
|
||||
AddressFamily any
|
||||
backup: yes
|
||||
validate: /usr/sbin/sshd -T -f %s
|
||||
notify:
|
||||
- Restart sshd
|
||||
# notify:
|
||||
# - Restart sshd
|
||||
when: nocontainer.stat.exists == true
|
||||
|
||||
- name: Disable external sftp-Subsystem
|
||||
@ -56,16 +56,16 @@
|
||||
replace: '#\1'
|
||||
validate: /usr/sbin/sshd -T -f %s
|
||||
backup: yes
|
||||
notify:
|
||||
- Restart sshd
|
||||
# notify:
|
||||
# - Restart sshd
|
||||
when: nocontainer.stat.exists == true
|
||||
|
||||
|
||||
handlers:
|
||||
|
||||
- name: Restart sshd
|
||||
service:
|
||||
name: sshd
|
||||
state: restarted
|
||||
# handlers:
|
||||
#
|
||||
# - name: Restart sshd
|
||||
# service:
|
||||
# name: sshd
|
||||
# state: restarted
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user