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
4ce6eca8
Commit
4ce6eca8
authored
Apr 29, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slight tweak to set_fact variable documentation to clarify scope info.
parent
c15d52cc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
docsite/latest/searchindex.js
+0
-0
library/utilities/set_fact
+6
-9
packaging/rpm/ansible.spec
+4
-4
No files found.
docsite/latest/searchindex.js
View file @
4ce6eca8
This diff is collapsed.
Click to expand it.
library/utilities/set_fact
View file @
4ce6eca8
...
...
@@ -24,12 +24,9 @@ author: Dag Wieers
module: set_fact
short_description: Set host facts from a task
description:
- This module allows you to set host facts from a task. This can be
useful for setting facts conditionally or allows to 'export' play
variables set by 'vars:' or 'vars_files:' to the playbook scope .
- In comparison to variables defined in the playbook, global variables
can be set conditionally (like any module) and are available in other
plays.
- This module allows setting new variables. Variables are set on a host-by-host basis
just like facts discovered by the setup module.
- These variables will survive between plays.
options:
key_value:
description:
...
...
@@ -42,13 +39,13 @@ version_added: "1.2"
examples:
- description: "Example setting host facts using key=value pairs"
code: |
action: set_fact
fact="something" global_fact="${local_var
}"'
action: set_fact
one_fact="something" other_fact="{{ local_var * 2 }
}"'
- description: "Example setting host facts using complex arguments"
code: |
action: set_fact
args:
fact: something
global_fact: ${local_var}
one_
fact: something
other_fact: "{{ local_var * 2 }}"
notes:
- You can set play variables using the C(set_var) module.
'''
packaging/rpm/ansible.spec
View file @
4ce6eca8
...
...
@@ -86,7 +86,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man3}/
cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
cp -v docs/man/man3/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ansible
cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
cp -
r
v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
%clean
rm -rf $RPM_BUILD_ROOT
...
...
@@ -96,9 +96,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/ansible*
%{_bindir}/ansible*
%dir %{_datadir}/ansible
%{_datadir}/ansible/[a-eg-z]*
%{_datadir}/ansible/f[a-hj-z]*
%{_datadir}/ansible/file
%{_datadir}/ansible/
*/
[a-eg-z]*
%{_datadir}/ansible/
*/
f[a-hj-z]*
%{_datadir}/ansible/
*/
file
%config(noreplace) %{_sysconfdir}/ansible
%doc README.md PKG-INFO COPYING
%doc %{_mandir}/man1/ansible*
...
...
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