Update validate example in copy.py (#60053)

This commit is contained in:
monobaila 2019-08-06 16:32:41 +01:00 committed by Sam Doran
parent faebe22439
commit 54b04f227e

View file

@ -168,14 +168,14 @@ EXAMPLES = r'''
copy: copy:
src: /mine/sudoers src: /mine/sudoers
dest: /etc/sudoers dest: /etc/sudoers
validate: /usr/sbin/visudo -cf %s validate: /usr/sbin/visudo -csf %s
- name: Copy a "sudoers" file on the remote machine for editing - name: Copy a "sudoers" file on the remote machine for editing
copy: copy:
src: /etc/sudoers src: /etc/sudoers
dest: /etc/sudoers.edit dest: /etc/sudoers.edit
remote_src: yes remote_src: yes
validate: /usr/sbin/visudo -cf %s validate: /usr/sbin/visudo -csf %s
- name: Copy using inline content - name: Copy using inline content
copy: copy: