Toshio Kuratomi
c83f51b7f2
Some LookupBase cleanups:
...
* Make LookupBase an abc with required methods (run()) marked as an
abstractmethod
* Mark methods that don't use self as @staticmethod
* Document how to implement the run method of a lookup plugin.
9 years ago
Toshio Kuratomi
049952fa50
Update submodule refs.
9 years ago
James Cammarata
1e7fd2196d
Fixing synchronize + delegate_to user bug
...
Fixes #12464
9 years ago
James Cammarata
3ffc2783c4
Don't bomb out on handlers with undefined variables in their names
9 years ago
Toshio Kuratomi
4b0d52d2cb
Merge pull request #12420 from ansible/win_prefix_modules
...
Fix for user defined modules not overriding modules from core.
9 years ago
James Cammarata
1076155d8d
When failing because of vars_files templating, try and bubble up the file/line info
9 years ago
Toshio Kuratomi
18e2ee16ef
Fix for user defined modules not overriding modules from core.
...
This fix takes into account that powershell modules are somewhat
different than regular modules and have to be kept separate.
9 years ago
Toshio Kuratomi
f61fb9787d
Update submodule refs
9 years ago
James Cammarata
c30e464388
Additional tweaks to callback output for delegate_to
9 years ago
James Cammarata
513619867a
Show delegated-to host in callback message
...
Fixes #12465
9 years ago
James Cammarata
f563b22446
Merge pull request #12461 from mgedmin/py3k
...
Python 3: there's no basestring
9 years ago
James Cammarata
d2949f5449
Merge pull request #12463 from mgedmin/fix-ansible-doc
...
Fix option descriptions in ansible-doc output
9 years ago
James Cammarata
0fb4a6a67b
Tweak to the way new host variables are created for delegated hosts
9 years ago
Marius Gedminas
339790adc4
Fix option descriptions in ansible-doc output
...
Fixes #12462 .
9 years ago
James Cammarata
18adfc6d1a
Set some default vars on hosts created for delegate_to connections
9 years ago
James Cammarata
a22f7b883d
Restrict role param vars to tasks within that role
...
Fixes #12460
9 years ago
Marius Gedminas
fc0dcc3947
Python 3: there's no basestring
...
Fixes one failing test.
Now technically a filename can be a bytestring, even on Python 3. I
hope this is unlikely for Ansible.
9 years ago
James Cammarata
ecf7d8c9ee
Fix relative path bug in copy action
...
Without rebreaking #12055
Fixes #ansible-modules-core/2098
9 years ago
James Cammarata
53794b692c
Merge pull request #12457 from ansible/warn-if-core-modules-not-present
...
Detect if core modules aren't installed and warn if that is the case
9 years ago
Toshio Kuratomi
627f9d73ba
Detect if core modules aren't installed and warn if that is the case
...
Fixes #11206
9 years ago
Brian Coca
d27b73e7b5
fixed case in which boto3 is present but module is not using it yet
9 years ago
James Cammarata
cb7060c9fe
Allow undefined var errors to bubble up when templating vars_files in certain conditions
...
Follow up to 8769f03c
, which allows the undefined var error to be raised
if we're getting vars with a full context (play/host/task) and the host
has already gathered facts. In this way, vars_files containing variables
that fail to be templated are not silently ignored.
9 years ago
Brian Coca
f96255f7fd
fixed typo
9 years ago
James Cammarata
86566e691a
Merge pull request #12447 from mgedmin/py3k
...
Python 3: there is no 'basestring'
9 years ago
James Cammarata
8769f03c16
Also catch AnsibleUndefinedVariable errors when templating vars_files names
...
Fixes #12449
9 years ago
Toshio Kuratomi
2a614c1c0f
Close module file once we're done reading from it
9 years ago
Marius Gedminas
9cdb6ebae3
Python 3: there is no 'basestring'
...
This fixes a failing unit test.
In actual use (which is still quite far), I'm not sure if bytes ->
unicode conversion should be done here (in which case the code will fail
with an AttributeError: 'bytes' object has no attribute 'readlines'), or
inside self._connection.exec_command() (in which case my change is
correct).
9 years ago
Victor Salgado
20bbd66e85
Use dict.get()
9 years ago
James Cammarata
65bf14cbb0
Merge pull request #12431 from hslee16/devel
...
Stops using _groups_list to check for host when using 'add_host'
9 years ago
James Cammarata
88e1aa94fa
Add play context vars to list of variables before post validation
...
Fixes #12437
9 years ago
James Cammarata
05f6e76407
Template handler names before checking to see if they need to run
...
Fixes #12427
9 years ago
James Cammarata
72769d1899
Merge pull request #12432 from mgedmin/py3k
...
Python 3: there's no xrange
9 years ago
James Cammarata
37f2cbc429
Merge pull request #12436 from amenonsen/ranges
...
Support «hosts: foo[1:]» and add tests for split/apply_subscript
9 years ago
James Cammarata
1f5584aa5b
Refactoring delegate_to code
...
Now, instead of relying on hostvars on the executor side, we compile
the vars for the delegated to host in a special internal variable and
have the PlayContext object look for things there when applying task/
var overrides, which is much cleaner and takes advantage of the code
already dealing with all of the magic variable variations.
Fixes #12127
Fixes #12079
9 years ago
James Cammarata
fa69e8ebb8
Fixing some bugs in _compute_delegate() in TaskExecutor
...
* Clearing interpreter settings from variables, so those set for the
original host aren't incorrectly applied to the delegated to host
* Fixed incorrect string for remote user in delegated hosts hostvars
* Properly looking for multiple possiblities in the delegated-to hosts
hostvars (ansible_ssh_host vs. ansible_host)
9 years ago
Peter Sprygada
e45b71d6cd
added new module object to vca
9 years ago
Abhijit Menon-Sen
2fcdb37e7b
Support «hosts: groupname[1:]» notation (~= 'the rest of the group')
9 years ago
Brian Coca
aca83b15e5
Merge pull request #12425 from privateip/devel
...
initial add of vca common module
9 years ago
Brian Coca
11707576a3
fix for AIX network facts
...
fixes #12434
9 years ago
Brian Coca
d7b61db6dc
made boto3 non mandatory
9 years ago
Toshio Kuratomi
fdb1c14004
Update the submodule pointers
9 years ago
Marius Gedminas
baf9320369
Python 3: there's no xrange
...
Use six.moves.range instead (aliased to xrange on Python 2, aliased to
range on Python 3).
Also I couldn't resist replacing the elaborate chr/ord/randrange dance
with the simpler random.choice(string.ascii_lowercase) that was already
used elsewhere in the Ansible codebase.
9 years ago
Alex Lee
cf289191e5
return None if group does not exist in inventory groups
9 years ago
James Cammarata
cc6627cdd6
Remove custom json encoder cleaner and strip proxy var stuff out before encoding
...
Fixes #12349
9 years ago
James Cammarata
c95d4ca05f
Properly assign search path to environment.loader in template lookup
...
Same fix as was applied in f162990c
to the action plugin
Fixes #12355
9 years ago
James Cammarata
bde5ed9672
Catch worker errors that may be subclassed on others that lead to incorrect exits
9 years ago
Peter Sprygada
8f43d222c0
initial add of vca common module
9 years ago
James Cammarata
053c41e79d
Fix typo in ansible module_utils import from galaxy code
9 years ago
Chrrrles Paul
7b778d8a4b
Merge pull request #12424 from amenonsen/ipv6-ranges
...
Tested. Thanks for spotting and then fixing this -- Allow hexadecimal ranges in IPv6 addresses, not only 0-9
9 years ago
Abhijit Menon-Sen
2d420a9bb7
Allow hexadecimal ranges in IPv6 addresses, not only 0-9
9 years ago