Fixing option order in connection info (v2)
This commit is contained in:
parent
2bf95aaa2d
commit
84fe6655d1
2 changed files with 9 additions and 5 deletions
|
@ -65,14 +65,13 @@ class ConnectionInformation:
|
||||||
self.no_log = False
|
self.no_log = False
|
||||||
self.check_mode = False
|
self.check_mode = False
|
||||||
|
|
||||||
if play:
|
|
||||||
self.set_play(play)
|
|
||||||
|
|
||||||
#TODO: just pull options setup to above?
|
#TODO: just pull options setup to above?
|
||||||
# set options before play to allow play to override them
|
# set options before play to allow play to override them
|
||||||
if options:
|
if options:
|
||||||
self.set_options(options)
|
self.set_options(options)
|
||||||
|
|
||||||
|
if play:
|
||||||
|
self.set_play(play)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
value = "CONNECTION INFO:\n"
|
value = "CONNECTION INFO:\n"
|
||||||
|
@ -136,8 +135,6 @@ class ConnectionInformation:
|
||||||
if options.check:
|
if options.check:
|
||||||
self.check_mode = boolean(options.check)
|
self.check_mode = boolean(options.check)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# get the tag info from options, converting a comma-separated list
|
# 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
|
# 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
|
# options have the attribute, as it is not always added via the CLI
|
||||||
|
|
7
v2/samples/test_sudo.yml
Normal file
7
v2/samples/test_sudo.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- hosts: ubuntu1404
|
||||||
|
gather_facts: no
|
||||||
|
remote_user: testing
|
||||||
|
tasks:
|
||||||
|
- command: whoami
|
||||||
|
- apt: update_cache=yes
|
||||||
|
sudo: yes
|
Loading…
Reference in a new issue