|
1 | 1 | # integration/transport_config |
2 | 2 | # Hosts with twiddled configs that need to be checked somehow. |
3 | 3 |
|
| 4 | +[transport_config:children] |
| 5 | +transport_config_undiscover |
| 6 | +tc_python_path |
4 | 7 |
|
5 | | -# tansport() |
| 8 | +[transport_config_undiscover:children] |
| 9 | +tc_become |
| 10 | +tc_become_method |
| 11 | +tc_become_pass |
| 12 | +tc_become_user |
| 13 | +tc_password |
| 14 | +tc_port |
| 15 | +tc_remote_addr |
| 16 | +tc_remote_user |
| 17 | +tc_transport |
| 18 | + |
| 19 | +[transport_config_undiscover:vars] |
| 20 | +# If python interpreter path is unset, Ansible tries to connect & discover it. |
| 21 | +# That causes approx 10 seconds timeout per task - there's no host to connect to. |
| 22 | +# This optimisation should not be relied in any test. |
| 23 | +# Note: tc-python-path-* are intentionally not included. |
| 24 | +ansible_python_interpreter = python3000 # Not expected to exist |
| 25 | + |
| 26 | +[tc_transport] |
6 | 27 | tc-transport-unset |
7 | 28 | tc-transport-local ansible_connection=local |
8 | 29 | tc-transport-smart ansible_connection=smart |
9 | 30 |
|
10 | | -# python_path() |
| 31 | +[tc_python_path] |
11 | 32 | tc-python-path-unset |
12 | 33 | tc-python-path-hostvar ansible_python_interpreter=/hostvar/path/to/python |
13 | 34 | tc-python-path-local-unset ansible_connection=local |
14 | 35 | tc-python-path-local-explicit ansible_connection=local ansible_python_interpreter=/a/b/c |
15 | 36 |
|
16 | | -# remote_addr() |
| 37 | +[tc_remote_addr] |
17 | 38 | tc-remote-addr-unset # defaults to inventory_hostname |
18 | 39 | tc-remote-addr-explicit-ssh ansible_ssh_host=ansi.ssh.host |
19 | 40 | tc-remote-addr-explicit-host ansible_host=ansi.host |
20 | 41 | tc-remote-addr-explicit-both ansible_ssh_host=a.b.c ansible_host=b.c.d |
21 | 42 |
|
22 | | -# password() |
| 43 | +[tc_password] |
23 | 44 | tc-password-unset |
24 | 45 | tc-password-explicit-ssh ansible_ssh_pass=ansi-ssh-pass |
25 | 46 | tc-password-explicit-pass ansible_password=ansi-pass |
26 | 47 | tc-password-explicit-both ansible_password=a.b.c ansible_ssh_pass=c.b.a |
27 | 48 |
|
28 | | -# remote_user() |
| 49 | +[tc_remote_user] |
29 | 50 | tc-remote-user-unset # defaults to C.DEFAULT_REMOTE_USER |
30 | 51 | tc-remote-user-explicit-ssh ansible_ssh_user=ansi-ssh-user |
31 | 52 | tc-remote-user-explicit-user ansible_user=ansi-user |
32 | 53 | tc-remote-user-explicit-both ansible_user=a.b.c ansible_ssh_user=c.b.a |
33 | 54 |
|
34 | | -# become() |
| 55 | +[tc_become] |
35 | 56 | tc-become-unset |
36 | 57 | tc-become-set |
37 | 58 |
|
38 | | -# become_method() |
| 59 | +[tc_become_method] |
39 | 60 | tc-become-method-unset |
40 | 61 | tc-become-method-su ansible_become_method=su |
41 | 62 |
|
42 | | -# become_user() |
| 63 | +[tc_become_user] |
43 | 64 | tc-become-user-unset |
44 | 65 | tc-become-user-set ansible_become_user=ansi-become-user |
45 | 66 |
|
46 | | -# become_pass() |
| 67 | +[tc_become_pass] |
47 | 68 | tc-become-pass-unset |
48 | 69 | tc-become-pass-password ansible_become_password=apassword |
49 | 70 | tc-become-pass-pass ansible_become_pass=apass |
50 | 71 | tc-become-pass-both ansible_become_pass=bpass ansible_become_password=bpassword |
51 | 72 |
|
52 | | -# port() |
| 73 | +[tc_port] |
53 | 74 | tc-port-unset |
54 | 75 | tc-port-explicit-port ansible_port=1234 |
55 | 76 | tc-port-explicit-ssh ansible_ssh_port=4321 |
|
0 commit comments