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
10 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)
10 years ago
Brian Coca
5dd61ad3fe
Merge pull request #12409 from mgedmin/patch-2
...
Fix example formatting in the documentation
10 years ago
Brian Coca
c9ebdb98cd
Merge pull request #12440 from privateip/vca
...
added new module object to vca
10 years ago
Peter Sprygada
e45b71d6cd
added new module object to vca
10 years ago
Brian Coca
aca83b15e5
Merge pull request #12425 from privateip/devel
...
initial add of vca common module
10 years ago
Brian Coca
11707576a3
fix for AIX network facts
...
fixes #12434
10 years ago
Brian Coca
d7b61db6dc
made boto3 non mandatory
10 years ago
Toshio Kuratomi
fdb1c14004
Update the submodule pointers
10 years ago
Brian Coca
a3064d175e
added cs_user to changelog
10 years ago
James Cammarata
cc6627cdd6
Remove custom json encoder cleaner and strip proxy var stuff out before encoding
...
Fixes #12349
10 years ago
James Cammarata
a431121f9f
Tweak to hacking path fix to go back to subshell use
10 years ago
James Cammarata
52bf06661d
Merge pull request #12426 from evanccnyc/devel
...
Allow env-setup to use spaces in full path
10 years ago
EC
bcdb4e78ae
Allow env-setup to use spaces in full path
10 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
10 years ago
James Cammarata
bde5ed9672
Catch worker errors that may be subclassed on others that lead to incorrect exits
10 years ago
Peter Sprygada
8f43d222c0
initial add of vca common module
10 years ago
James Cammarata
053c41e79d
Fix typo in ansible module_utils import from galaxy code
10 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
10 years ago
Abhijit Menon-Sen
2d420a9bb7
Allow hexadecimal ranges in IPv6 addresses, not only 0-9
10 years ago
James Cammarata
b386f0c64d
Merge pull request #12423 from amenonsen/split-fixup
...
Remove deprecation warning; now handled in _split_patterns
10 years ago
James Cammarata
7ae03f8342
Merge branch 'amenonsen-addresses' into devel
10 years ago
James Cammarata
a1fffff92c
Merge branch 'addresses' of https://github.com/amenonsen/ansible into amenonsen-addresses
10 years ago
Abhijit Menon-Sen
62ca6b5e35
Remove deprecation warning; now handled in _split_patterns
10 years ago
Abhijit Menon-Sen
575a8b8c77
Merge Host.ipv[46]_address into .address
...
The earlier distinction was never used; .ipv6_address was always a copy
of .ipv4_address, and the latter was always used to set the remote_addr
field in the PlayContext.
Also uses the canonical ansible_host/ansible_port names when setting the
address and port from variables.
10 years ago
James Cammarata
cc4601258d
Merge branch 'amenonsen-hostpatterns' into devel
10 years ago
James Cammarata
951128d7a6
Merge branch 'hostpatterns' of https://github.com/amenonsen/ansible into amenonsen-hostpatterns
10 years ago
Abhijit Menon-Sen
713f5ab79d
Merge pull request #1 from mcsalgado/hostpatterns
...
More tests, better handling of list arguments to _split_pattern
10 years ago
Victor Salgado
14fefebaad
Modify _split_pattern to use map when working with list input
10 years ago
Victor Salgado
01ae60d524
Add more tests for _split_pattern for when the input is a list
10 years ago
James Cammarata
46baed864f
Submodule update after correcting doc bug
10 years ago
James Cammarata
0beb37a121
Submodule update
10 years ago
James Cammarata
6fabcafbf1
Adding new module os_user_group to CHANGELOG
10 years ago
James Cammarata
d875699ac2
Merge branch 'apollo13-sudo_on_if_needed' into devel
10 years ago
James Cammarata
ba82e57445
Merge branch 'sudo_on_if_needed' of https://github.com/apollo13/ansible into apollo13-sudo_on_if_needed
10 years ago
Toshio Kuratomi
8532ddd5ed
typo in formatting the warning message
10 years ago
Toshio Kuratomi
4ae5512fb0
Restore python3 compat fix and fix AnsibleError undefined before use
10 years ago
James Cammarata
c881b1acae
Merge pull request #12407 from mgedmin/py3k
...
Python 3: basestring in play_context.py
10 years ago
James Cammarata
8acbc00853
Fixing groups variable structure to match v1
...
Fixes #12418
10 years ago
Abhijit Menon-Sen
349eec7855
Fix missing colon (typo) in IPv6 pattern
10 years ago
Abhijit Menon-Sen
b47bc343ea
Document , instead of : in intro_patterns, update changelog
10 years ago
Abhijit Menon-Sen
abd006657b
Add test/units/inventory with a few _split_pattern tests
...
There were no inventory-specific unit tests earlier, so we add a new
directory for them with some initial low-level tests of _split_pattern
with various valid and deprecated pattern strings.
10 years ago
Abhijit Menon-Sen
2405861a9e
Use ',' instead of ':' or ';' to separate host patterns
...
The earlier-recommended "pat1:pat2:pat3[x:y]" notation doesn't work well
with IPv6 addresses, so we recommend ',' as a separator instead. We know
that commas can't occur within a pattern, so we can just split on it.
We still have to accept the "foo:bar" notation because it's so commonly
used, but we issue a deprecation warning for it.
Fixes #12296
Closes #12404
Closes #12329
10 years ago
Florian Apolloner
d9f873495e
Ported over #7158 to support SELinux context switches.
10 years ago
Florian Apolloner
8548690ca3
Added a test to ensure that sudo is only used if remote and become user difer.
10 years ago
Brian Coca
24388421c2
Merge pull request #12417 from OddEssay/retry_files_documentation
...
Documentation for retry_files_enabled and retry_files_save_path
10 years ago
Brian Coca
ee840f3029
fixed function signature
10 years ago
Paul Freeman
87fc5640d4
Comments to explain retry_files_enabled and retry_files_save_path
10 years ago
Paul Freeman
f14c617084
Documentation for retry_files_enabled and retry_files_save_path
10 years ago
Florian Apolloner
decd9e8710
Only use become if the target user difers from the current remote user.
10 years ago