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
84fe6655
Commit
84fe6655
authored
Apr 28, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing option order in connection info (v2)
parent
2bf95aaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
v2/ansible/executor/connection_info.py
+2
-5
v2/samples/test_sudo.yml
+7
-0
No files found.
v2/ansible/executor/connection_info.py
View file @
84fe6655
...
...
@@ -65,14 +65,13 @@ class ConnectionInformation:
self
.
no_log
=
False
self
.
check_mode
=
False
if
play
:
self
.
set_play
(
play
)
#TODO: just pull options setup to above?
# set options before play to allow play to override them
if
options
:
self
.
set_options
(
options
)
if
play
:
self
.
set_play
(
play
)
def
__repr__
(
self
):
value
=
"CONNECTION INFO:
\n
"
...
...
@@ -136,8 +135,6 @@ class ConnectionInformation:
if
options
.
check
:
self
.
check_mode
=
boolean
(
options
.
check
)
# get the tag info from options, converting a comma-separated list
# of values into a proper list if need be. We check to see if the
# options have the attribute, as it is not always added via the CLI
...
...
v2/samples/test_sudo.yml
0 → 100644
View file @
84fe6655
-
hosts
:
ubuntu1404
gather_facts
:
no
remote_user
:
testing
tasks
:
-
command
:
whoami
-
apt
:
update_cache=yes
sudo
:
yes
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