Matt Martz
ca838d75e3
Get v2_playbook_on_start working
...
* Move self._tqm.load_callbacks() earlier to ensure that v2_on_playbook_start can fire
* Pass the playbook instance to v2_on_playbook_start
* Add a _file_name instance attribute to the playbook
2015-12-02 12:41:18 -05:00
Abhijit Menon-Sen
f339184e29
Use CLI.expand_tilde also for the vault --output file
2015-12-02 09:24:36 -08:00
Brian Coca
91f71b0ace
added remote environment var setting to changelog
2015-12-02 09:09:35 -08:00
Abhijit Menon-Sen
f2f310472f
Make module_lang default to whatever LANG is set to on the control node
2015-12-02 09:07:26 -08:00
Matt Martz
de7dc5d07f
Catch additional assertion errors for load_list_of_blocks
2015-12-02 09:04:59 -08:00
Brian Coca
ae5cfb2898
better error on invalid task lists
2015-12-02 08:14:37 -08:00
James Cammarata
381409140e
Minor tweak and comment addition to 974a0ce3
2015-12-02 09:10:20 -05:00
Christoph Dittmann
be92f909ee
Update debug messages and comments
...
The comment was taken literally from lib/plugins/strategy/linear.py and
makes no sense in free.py where we have no noop tasks.
Also update the debug messages.
2015-12-02 09:00:27 -05:00
Christoph Dittmann
974a0ce3fb
Fix issue #13370
...
all_blocks is referenced after the loop over included_files, so it needs
to be initialized before this loop, not inside.
2015-12-02 09:00:26 -05:00
Christoph Dittmann
1f1febaa0d
Let PlayIterator.add_tasks accept empty task lists
...
PlayIterator.add_tasks raised an error when trying to add an empty task
list. This was the root cause of ansible issue #13370 .
2015-12-02 09:00:26 -05:00
Brian Coca
3c25ae2e10
updated new module list
...
added missing modules and fixed alphabetical ordering
2015-12-01 23:53:43 -08:00
Brian Coca
d9218ce33f
reformated test, changed big assert to with_items
...
much easier to see the individual condition that causes the failure
when using with_items and evaluating each part of the assert individually
2015-12-01 21:26:36 -08:00
Brian Coca
346a9fe87d
unconditionally set vars on init to avoid issues with var precedence
2015-12-01 21:25:43 -08:00
Peter Sprygada
5b5c6c4f47
fixes a syntax issue with module_utils/eapi.py
...
This patch fixes an issue with the common args dict in the eapi shared
module. This patch is required for the eapi shared module to be properly
imported and is therefore should be applied to all instances.
2015-12-01 20:46:11 -08:00
Peter Sprygada
02d059271c
initial add of ssh shared module.
...
This ssh shared module is used for building modules that require an
interactive shell environment such as those required for connecting
to network devices
2015-12-01 19:15:41 -08:00
Peter Sprygada
a6771b2255
adds module create function for eapi.py shared module
...
This commit changes the way modules create an instance of AnsibleModule to
now use a common function, eapi_module. This function will now automatically
append the common argument spec to the module argument_spec. Module
arguments can override common module arguments
2015-12-01 19:14:38 -08:00
Peter Sprygada
a9e8b54246
initial add of the ios shared module
...
This adds shared module support for building modules that connect to Cisco
IOS devices. It builds on the module_utils/ssh.py shared module.
2015-12-01 19:05:14 -08:00
Brian Coca
d2108e9ff3
fixed signature for init on callbacks
...
also removed passing display to base class which already handles this
2015-12-01 14:07:47 -08:00
nitzmahone
59dadc4f6b
allow shell plugin to affect remote module filename
...
Fix for 13368, added get_remote_filename to shell plugins, powershell version appends .ps1 if necessary, base shell plugin no-ops
2015-12-01 14:02:01 -08:00
Brian Coca
927d28e5d5
added pull's code sig verification to changelog
2015-12-01 09:55:06 -08:00
Toshio Kuratomi
a61718cfc5
Revert "Note that su now works with local connection"
...
This reverts commit 93ef35e6a9
.
bcoca already added this
2015-12-01 09:49:08 -08:00
Toshio Kuratomi
93ef35e6a9
Note that su now works with local connection
2015-12-01 09:14:10 -08:00
Toshio Kuratomi
b0e22d7701
_connect no longer takes a port argument
2015-12-01 09:12:55 -08:00
Brian Coca
1b7db6316e
updated changelog to show su now works with local
2015-12-01 09:11:30 -08:00
Brian Coca
ca8c6e8e1c
ignore password flags in become conflict check
...
since all the --ask pass options end up triggering the same code
and are functionally equivalent, ignore them when it comes to checking
privilege escalation conflicts. This allows using -K when --become-method=su
and so on.
2015-12-01 08:57:33 -08:00
Brian Coca
204e27ca66
avoid inheritance issues with default=dict declaration at class level
...
this should avoid the issue of subsequent plays not prompting for a var
prompted for in a previous play.
fixes #13363
2015-11-30 15:12:53 -08:00
James Cammarata
f96730003b
Also make sure remote_user is defaulted correctly for delegated hosts
...
Fixes #13323
2015-11-30 16:16:11 -05:00
Toshio Kuratomi
4f3f79d37b
Call the function :-)
...
Fixes #13330
2015-11-30 12:34:55 -08:00
James Cammarata
89f0207007
Ensure port is (re)set for delegated-to hosts
...
Fixes #13265
2015-11-30 14:41:05 -05:00
Brian Coca
f8ed1c003a
fixed typo
2015-11-30 09:21:26 -08:00
Brian Coca
c5cd908c33
allow for bad stdout return from make temp dir command
...
fixes #13359
2015-11-30 09:20:24 -08:00
Brian Coca
958da26d18
corrected become_methods class variable in winrm
...
This should now correctly react when using become with winrm
fixes #13331
2015-11-30 08:35:33 -08:00
James Cammarata
a5d6be6dd2
Make sure run_once tasks properly set variables for all active hosts
...
Fixes #13267
2015-11-30 11:28:28 -05:00
James Cammarata
7af506e7cf
Use text_type instead of unicode
2015-11-30 11:28:25 -05:00
James Cammarata
3a0f2475b2
Make sure the uuid in vars is string
2015-11-30 10:27:21 -05:00
James Cammarata
2db3f12027
Re-implement lookup wantlist
...
Fixes #13285
2015-11-29 23:45:14 -05:00
Yannig Perré
bb52b45ea0
Do not copy variable_manager each time. Instead, keep host and local variable_manager sync.
...
Fix https://github.com/ansible/ansible/issues/13221
2015-11-29 23:15:01 -05:00
James Cammarata
4114a3097f
Tweak location of stats callback execution and properly relocate stats output code
2015-11-28 14:02:50 -05:00
Monty Taylor
73a269f9a5
Put in trap for args being None
...
_normalize_old_style_args can return None. If it does, the loop
"for args in args" blows up.
2015-11-28 13:44:44 -05:00
James Cammarata
737e467b8a
Trigger on_stats just once, not once for each play
...
Fixes #13271
2015-11-28 13:37:02 -05:00
Abhijit Menon-Sen
cac0eea291
Explicitly accept become_success in awaiting_prompt state
...
If we request escalation with a password, we start in expecting_prompt
state. If the escalation then succeeds without the password, i.e., the
become_success response arrives, we must explicitly move into the next
state (awaiting_escalation, which immediately goes into ready_to_send),
so that we no longer try to apply the timeout.
Otherwise, we would leak the success notification and eventually
timeout. But if the module response did arrive before the timeout
expired, the "process has already exited" test would do the right
thing by accident (which is why it didn't fail more often).
Fixes #13289
2015-11-28 10:22:35 -05:00
James Cammarata
54843d88ee
Re-adding role_name/role_uuid variables
2015-11-28 10:00:42 -05:00
Yannig Perré
47651e6c22
More restrictive test against variable name to allow setting variable starting with _.
2015-11-28 10:00:38 -05:00
Yannig Perré
9e6ec4c6b0
Switch parameters validation after parsing in order to be more consistent between old and new style.
2015-11-28 10:00:34 -05:00
Raphael Badin
6457f88aab
Fix missing word in developing_modules.rst
2015-11-28 10:00:25 -05:00
dizzler
e210da3659
Fix typo in modules_core.rst
2015-11-28 10:00:22 -05:00
René Moser
e0ecaac90d
changelog: minor formating fix
2015-11-28 10:00:18 -05:00
Brian Coca
dbedcd3538
avoids prompting for vars during syntax check
...
fixes #13319
2015-11-27 11:46:32 -08:00
Kerim Satirli
4e6442fd19
removes editorial
...
I feel that Ansible is above the "my hosted Git community is better than yours" discussion and thus removed the editorial around Bitbucket
2015-11-27 11:15:57 -08:00
Chris Church
126249d69a
Add assertions for ansible_date_time in setup result.
2015-11-27 00:49:02 -05:00