Fix ssh example with sshd config (#60821)
The example tries to validate a sshd config, but provides sshd (server) a client configuration. If trying to execute the given validation command on a client file, it doesn't work (e.g. running `/usr/sbin/sshd -T -f /etc/ssh/sshd_config` returns non-zero code)
This commit is contained in:
parent
11be31db71
commit
5acbb42dc4
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ EXAMPLES = r'''
|
|||
|
||||
- name: Insert/Update configuration using a local file and validate it
|
||||
blockinfile:
|
||||
block: "{{ lookup('file', './local/ssh_config') }}"
|
||||
dest: /etc/ssh/ssh_config
|
||||
block: "{{ lookup('file', './local/sshd_config') }}"
|
||||
dest: /etc/ssh/sshd_config
|
||||
backup: yes
|
||||
validate: /usr/sbin/sshd -T -f %s
|
||||
|
||||
|
|
Loading…
Reference in a new issue