Steven Robertson
5e0fb902b2
fix lambda args for fallback
2020-02-18 17:29:26 -08:00
Steven Robertson
91785f8862
fix another bad import
2020-02-11 18:46:14 -08:00
Steven Robertson
aa0ad5ce8f
accidentally broke discovery
2020-02-10 16:42:02 -08:00
Steven Robertson
f10fb7d486
more test cases pass
2020-02-05 17:09:34 -08:00
Steven Robertson
e3eebb98d0
ImportError instead of newer ModuleNotFoundError
2020-02-05 15:40:25 -08:00
Steven Robertson
2d3d9cb659
fallback to old-style python interpreter default if running ansible < 2.8.0
2020-02-05 15:34:47 -08:00
Steven Robertson
8630f6190c
fixed propagating discovered interpreter to future tasks; sys.executable still wrong though
2020-02-03 14:51:50 -08:00
Steven Robertson
af1e22d4e1
able to propagate ansible_python_interpreter fact but still doesn't save between task runs
2020-02-03 14:36:47 -08:00
Steven Robertson
119e1c24aa
code cleanup
2020-01-31 17:37:26 -08:00
Steven Robertson
cec692dc17
faking pipelining so discover_interpreter can successfully exit
2020-01-31 17:22:49 -08:00
Steven Robertson
a6d2b2cd90
doesn't error when declaring 'ansible_python_interpreter: auto' but fact isn't being cached
2020-01-31 17:08:43 -08:00
Steven Robertson
806651e112
working on ansible discovery; need to fix passing ActionModuleMixin reference still
2020-01-30 15:44:20 -08:00
Steven Robertson
d64adb15d7
reverted autolinted code
2020-01-29 18:55:35 -08:00
Steven Robertson
cc11864b7d
code cleanup
2019-10-29 17:51:27 -07:00
Steven Robertson
24b170311a
able to get to 'sudo: source not found' after preventing escape of && so python connects
2019-10-29 14:44:49 -07:00
Jordan Webb
1a02a86331
Add buildah transport
2019-06-08 18:15:58 -05:00
David Wilson
3620fce071
issue #593 : expose configurables for SSH keepalive and increase the default
2019-06-03 17:40:58 +01:00
David Wilson
92b4724010
issue #587 : consistent become_exe() behaviour for older Ansibles.
2019-05-27 14:59:57 +01:00
David Wilson
f35194fe0f
issue #587 : mitogen_doas should not become_exe for doas_path
...
Looks like this has always been wrong - when used as a connection
method, PlayContext.become_method/become_exe may hold totally unrelated
data.
2019-05-27 14:59:57 +01:00
David Wilson
c1c8d5c31e
issue #587 : 2.8 PlayContext lacks sudo_flags attribute.
...
This is a huge bodge.
2019-05-26 16:46:38 +01:00
David Wilson
f30a4c05c8
issue #581 : expose mitogen_mask_remote_name variable.
2019-04-16 22:46:12 +01:00
David Wilson
7fd0d34910
tests/ansible: Spec.port() test & mitogen_via= fix.
...
ansible_ssh_port was not respected.
2019-02-13 16:32:11 +00:00
David Wilson
1f77d24bec
Update copyright year everywhere.
2019-02-13 16:16:49 +00:00
David Wilson
b5b23e8f3d
tests/ansible: Spec.become_pass() test.
2019-02-13 16:14:15 +00:00
David Wilson
8ae6ca1d5b
tests/ansible: Spec.become_method() test & mitogen_via= fix.
...
ansible_become_method hostvar was not taken into account.
2019-02-12 16:32:11 +00:00
David Wilson
d1cadf8ac8
tests/ansible: Spec.password() test, document interactive pw limitation.
2019-02-12 16:04:05 +00:00
David Wilson
21ad299d7b
tests/ansible: Spec.remote_user() test & mitogen_via= fix.
...
ansible_ssh_user precedence was incorrect.
2019-02-12 14:52:36 +00:00
David Wilson
748f5f675d
tests/ansible: Spec.remote_addr() test & mitogen_via= fix.
...
ansible_ssh_host was not respected.
2019-02-12 14:45:46 +00:00
David Wilson
e1df98168c
issue #536 : add mitogen_via= tests too.
2019-02-12 02:12:39 +00:00
David Wilson
001e3fee86
issue #536 : restore correct Python interpreter selection behaviour.
2019-02-12 00:12:28 +00:00
David Wilson
b499fbe29b
ansible: add mitogen_ssh_compression variable.
2019-02-09 22:04:19 +00:00
David Wilson
e7fe95af88
issue #477 : fix sudo_args selection.
2019-01-27 05:07:36 +00:00
David Wilson
0175052099
issue #477 : fix source of become_flags on 2.3.
2019-01-27 03:49:01 +00:00
David Wilson
115c3c5657
issue #412 : add docstrings/boilerplate to transport_config.py.
2019-01-22 01:38:58 +00:00
David Wilson
2ad05f1238
issue #251 , #412 , #434 : fix connection configuration brainwrong
...
This refactors connection.py to pull the two huge dict-building
functions out into new transport_transport_config.PlayContextSpec and
MitogenViaSpec classes, leaving a lot more room to breath in both files
to figure out exactly how connection configuration should work.
The changes made in 1f21a30
/ 3d58832
are updated or completely removed,
the original change was misguided, in a bid to fix connection delegation
taking variables from the wrong place when delegate_to was active.
The Python path no longer defaults to '/usr/bin/python', this does not
appear to be Ansible's normal behaviour. This has changed several times,
so it may have to change again, and it may cause breakage after release.
Connection delegation respects the c.DEFAULT_REMOTE_USER whereas the
previous version simply tried to fetch whatever was in the
'ansible_user' hostvar. Many more connection delegation variables closer
match vanilla's handling, but this still requires more work. Some of the
variables need access to the command line, and upstream are in the
process of changing all that stuff around.
2019-01-22 00:40:32 +00:00