Update template.py (#67010)

Update the example so that the task name matches the filename being updated
The first example shows how you might template a file to destination /etc/file.conf.  The description of this task appears to have a typo as it refers to  '/etc/files.conf' rather than '/etc/file.conf'
This commit is contained in:
unixsysadmin 2020-02-03 17:28:55 +00:00 committed by GitHub
parent 87a5e433ef
commit ea105dcb2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ extends_documentation_fragment:
'''
EXAMPLES = r'''
- name: Template a file to /etc/files.conf
- name: Template a file to /etc/file.conf
template:
src: /mytemplates/foo.j2
dest: /etc/file.conf