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)
pull/54309/head
Arnaud Venturi 5 years ago committed by Alicia Cozine
parent 11be31db71
commit 5acbb42dc4

@ -119,8 +119,8 @@ EXAMPLES = r'''
- name: Insert/Update configuration using a local file and validate it - name: Insert/Update configuration using a local file and validate it
blockinfile: blockinfile:
block: "{{ lookup('file', './local/ssh_config') }}" block: "{{ lookup('file', './local/sshd_config') }}"
dest: /etc/ssh/ssh_config dest: /etc/ssh/sshd_config
backup: yes backup: yes
validate: /usr/sbin/sshd -T -f %s validate: /usr/sbin/sshd -T -f %s

Loading…
Cancel
Save