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
e0317a35
Commit
e0317a35
authored
May 08, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use template syntax in non-templates, it's not the default anymore
parent
7f6add67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
examples/playbooks/intermediate_example.yml
+1
-1
examples/playbooks/selective_file_sources.yml
+3
-3
No files found.
examples/playbooks/intermediate_example.yml
View file @
e0317a35
...
...
@@ -34,7 +34,7 @@
# we could also have done something like:
# - include: wordpress.yml user=timmy
# and had access to the template variable
{{ user }}
in the
# and had access to the template variable
$user
in the
# included file, if we wanted to. Variables from vars
# and vars_files are also available inside include files
...
...
examples/playbooks/selective_file_sources.yml
View file @
e0317a35
...
...
@@ -13,13 +13,13 @@
first_available_file
:
# first see if we have a file for this specific host
-
/srv/whatever/
{{ ansible_hostname }
}.conf
-
/srv/whatever/
${ansible_hostname
}.conf
# next try to load something like CentOS6.2.conf
-
/srv/whatever/
{{ ansible_distribution }}{{ ansible_distribution_version }
}.conf
-
/srv/whatever/
${ansible_distribution}${ansible_distribution_version
}.conf
# next see if there's a CentOS.conf
-
/srv/whatever/
{{ ansible_distribution }
}.conf
-
/srv/whatever/
${ansible_distribution
}.conf
# finally give up and just use something generic
-
/srv/whatever/default
...
...
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