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:
Arnaud Venturi 2019-08-20 14:54:02 +00:00 committed by Alicia Cozine
parent 11be31db71
commit 5acbb42dc4

View file

@ -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