Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
2ce77b8c
Commit
2ce77b8c
authored
Mar 26, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6706 from geerlingguy/devel
Fix template validation docs and example.
parents
8991e403
8960cba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/files/template
+3
-3
No files found.
library/files/template
View file @
2ce77b8c
...
...
@@ -40,7 +40,7 @@ options:
default: "no"
validate:
description:
-
validation to run before copying into place
-
The validation command to run before copying into place. The path to the file to validate is passed in via '%s' which must be present as in the visudo example below. (added in Ansible 1.2)
required: false
default: ""
version_added: "1.2"
...
...
@@ -63,6 +63,6 @@ EXAMPLES = '''
# Example from Ansible Playbooks
- template: src=/mytemplates/foo.j2 dest=/etc/file.conf owner=bin group=wheel mode=0644
# Copy a new "sudoers file into place, after passing validation with visudo
-
action: template
src=/mine/sudoers dest=/etc/sudoers validate='visudo -cf %s'
# Copy a new "sudoers
"
file into place, after passing validation with visudo
-
template:
src=/mine/sudoers dest=/etc/sudoers validate='visudo -cf %s'
'''
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment