Update validate example in copy.py (#60053)
This commit is contained in:
parent
faebe22439
commit
54b04f227e
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue