Brian Coca
40b55eda4c
avoid set to unique hosts to preserver order
...
swiched to using a list comp and set to still unique but keep expected order
fixes #13522
2015-12-11 15:40:48 -05:00
Brian Coca
7678ab05d8
removed merge conflict
2015-12-11 15:10:48 -05:00
James Cammarata
5b801afa38
Don't mark hosts failed if they've moved to a rescue portion of a block
...
Fixes #13521
2015-12-11 14:58:38 -05:00
Brian Coca
71cc791677
narrow down exception catching in block builds
...
this was obscuring other errors and should have always been narrow scope
2015-12-11 13:13:19 -05:00
Toshio Kuratomi
9b5ec8f359
Update submodule ref
2015-12-10 08:10:13 -08:00
Toshio Kuratomi
2dbcd8fc9e
become_pass needs to be bytes when it is passed to ssh.
...
Fixes #13240
2015-12-10 07:30:20 -08:00
Charles Paul
82789df231
allow custom callbacks with adhoc cli for scripting
...
missing import of CallbackBase
2015-12-10 07:05:41 -08:00
James Cammarata
3fafc6d655
Missed one place we were appending the incorrectly escaped item to raw params
2015-12-09 17:59:06 -05:00
Toshio Kuratomi
b793fbc60a
Remove the funcd connection plugin
2015-12-09 13:30:37 -08:00
Brian Coca
45d2f59858
changed deprecation to removal warning
2015-12-09 12:39:11 -08:00
Toshio Kuratomi
dd6e10ce43
Update submodule refs
2015-12-09 12:11:30 -08:00
James Cammarata
6694e97a31
Make on_file_diff callback item-aware
2015-12-09 14:52:06 -05:00
Brian Coca
699bb847a0
reenabled --tree for ansible adhoc command
...
previous fix to avoid callbacks now conflicted with tree optoin
which is implemented as a callback in 2.0
2015-12-09 10:14:43 -08:00
Brian Coca
c02ca22894
adhoc avoids callbacks by default as it did before
...
Previous emptying of whitelist only affected callbacks that were
constructed for need whitelist. This now works for all callbacks.
2015-12-09 10:03:39 -08:00
Brian Coca
4d7710806e
attribute defaults that are containers are a copy
...
This is simpler way to prevent persistent containers across instances
of classes that use field attributes
2015-12-09 08:42:14 -08:00
Brian Coca
c2665da3e8
removed unused 'pattern' from ansible.cfg
...
also moved the config param to a 'deprecated' list in constants.py
added TODO for producing a deprecation warning for such vars
2015-12-09 08:42:14 -08:00
Brian Coca
186259eb80
removed default from hosts to make it requried
...
prevents writing a play w/o a hosts entry which would default to
all/empty
2015-12-09 08:42:14 -08:00
Brian Coca
e571bf94d4
Revert "avoid persistent containers in attribute defaults"
...
This reverts commit 87969868d4
.
found better way to do it
2015-12-09 08:42:14 -08:00
Brian Coca
565b5097da
clarified warning from tree callback
2015-12-09 08:40:56 -08:00
chouseknecht
0a6f8b2bf3
Galaxy 2.0
2015-12-09 11:30:05 -05:00
Brian Coca
f649dc71e7
avoid persistent containers in attribute defaults
...
moved from the field attribute declaration and created a placeholder
which then is resolved in the field attribute class.
this is to avoid unwanted persistent of the defaults across objects which introduces
stealth bugs when multiple objects of the same kind are used in succession while
not overriding the default values.
2015-12-09 11:11:49 -05:00
Brian Coca
9eb9f55a31
keep string type filters as strings
...
now we don't try to convert types if using a filter that outputs a specifically formated string
made list of filters configurable
2015-12-08 12:52:44 -08:00
David L Ballenger
dbcfce03d2
Add ssh_host support for MacOSX El Capitan.
...
OS X El Capitan moved the /etc/ssh_* files into /etc/ssh/. This fix
adds a distribution version check for Darwin to set the keydir
appropriately on El Capitan and later.
2015-12-08 15:36:49 -05:00
James Cammarata
058e02137a
Preserve original token when appending to _raw_params in parse_kv
...
Fixes #13311
2015-12-08 15:06:01 -05:00
Brian Coca
666cb07614
fixed typo in tree callback, added default dir
...
this would allow it to work with playbooks also
2015-12-08 11:59:51 -08:00
James Cammarata
422092b8bc
Fix typo from 5ae850c
2015-12-08 14:34:37 -05:00
James Cammarata
5ae850c3b2
Make fact delegating configurable, defaulting to 1.x behavior
2015-12-08 14:00:17 -05:00
Brian Coca
7c8e1b41bb
Revert "Fix always_run support in the action plugin for template when copying"
...
This reverts commit 45670eff81
.
2015-12-08 09:26:24 -08:00
Brian Coca
43bfd16666
have always_run override check mode for a task
...
Fixes #13418
2015-12-08 09:26:13 -08:00
James Cammarata
45670eff81
Fix always_run support in the action plugin for template when copying
...
Fixes #13418
2015-12-08 11:55:35 -05:00
James Cammarata
50e5b0f8e9
Merge pull request #13467 from bcoca/adhoc_callbk_fix
...
adhoc does not load plugins by default
2015-12-08 11:28:20 -05:00
Brian Coca
e69064d0fc
Merge pull request #13451 from bcoca/doas_fix
...
fixed doas from getting stuck when needing passwords
2015-12-08 11:13:01 -05:00
Peter Sprygada
1aa775196b
adds new device argument to nxapi command arguments
...
The device argument allows a dict of nxapi parameters to be passed to
the module to simplify passing the nxapi parameters
2015-12-08 10:36:47 -05:00
Brian Coca
b07451eef8
adhoc does not load plugins by default
...
reimplemented feature from 1.x which kept additional callbacks from
poluting adhoc unless specifically asked for through configuration.
2015-12-08 06:37:15 -08:00
James Cammarata
cc98528ecb
Version bump for 2.0.0-0.7.rc2
2015-12-07 13:13:37 -05:00
Yannig Perré
2ed2c12f60
Fix issue when var name is the same as content.
...
See https://github.com/ansible/ansible/issues/13453 for more details.
2015-12-07 10:08:13 -05:00
Nils Steinger
d85b8adba6
More meaningful string representation for meta tasks (like 'noop' and 'flush_handlers')
2015-12-07 10:08:13 -05:00
Peter Sprygada
d89dbf19fb
bugfix for ios.py shared module argument creation
...
This patch fixes a bug in module_utils/ios.py where the the wrong shared
module arguments are being generated. This bug prevented the shared module
from operating correctly. This patch should be generally applied.
2015-12-07 06:59:43 -08:00
Toshio Kuratomi
40c01f3739
Use self.args when we parse arguments that way the arguments can be constructed manually
2015-12-06 22:19:11 -08:00
Toshio Kuratomi
71ffa5abdc
Add representers so we can output yaml for all the types we read in from yaml
2015-12-06 22:19:02 -08:00
Brian Coca
0533e0bc96
fixed doas from getting stuck when needing passwords
...
Also adjusted test to match new doas become output
fixes #13449
2015-12-06 00:35:28 -05:00
Luca Berruti
3974b13a5a
Make no_target_syslog consistent.
...
no_target_syslog = False --> do log on target
2015-12-05 16:14:36 -05:00
Brian Coca
d04d5bf0d5
only set become defaults at last possible moment
...
tasks were overriding commandline with their defaults, not with the
explicit setting, removed the setting of defaults from task init and
pushed down to play context at last possible moment.
fixes #13362
2015-12-05 15:59:51 -05:00
Brian Coca
8a733d990f
simplified get_hosts code to have 1 retrun point
2015-12-05 10:13:09 -05:00
Nils Steinger
895fc48700
Remove duplicates from host list *before* caching it
...
Ansible previously added hosts to the host list multiple times for commands
like `ansible -i 'localhost,' -c local -m ping 'localhost,localhost'
--list-hosts`.
8d5f36a
fixed the obvious error, but still added the un-deduplicated list to a
cache, so all future invocations of get_hosts() would retrieve a
non-deduplicated list.
This caused problems down the line: For some reason, Ansible only ever
schedules "flush_handlers" tasks (instead of scheduling any actual tasks from
the playbook) for hosts that are contained in the host lists multiple times.
This probably happens because the host states are stored in a dictionary
indexed by the hostnames, so duplicate hostname would cause the state to be
overwritten by subsequent invocations of … something.
2015-12-05 10:13:09 -05:00
Toshio Kuratomi
4c21d58f4c
Transform exceptions into ansible messages via to_unicode instead of str to avoid tracebacks.
...
Fixes #13385
2015-12-04 11:52:07 -08:00
James Cammarata
627576a955
Adding a uuid field so we can track host equality across serialization too
2015-12-04 13:34:10 -05:00
Toshio Kuratomi
3aa4db5083
Update submodule refs
2015-12-04 09:59:30 -08:00
James Cammarata
cd76552724
Changing up how host (in)equality is checked
...
Fixes #13397
2015-12-04 12:58:16 -05:00
Brian Coca
f630e140d2
fixed ansible-pull broken options
...
* sudo was not working, now it supports full become
* now default checkout dir works, not only when specifying
* paths for checkout dir get expanded
* fixed limit options for playbook
* added verbose and debug info
2015-12-03 20:51:51 -08:00