|
|
|
# code: language=ini
|
|
|
|
# vim: syntax=dosini
|
|
|
|
|
|
|
|
# When running the tests outside CI, make a single 'target' host which is the
|
|
|
|
# local machine. The ansible_user override is necessary since some tests want a
|
|
|
|
# fixed ansible.cfg remote_user setting to test against.
|
|
|
|
# os.environ['USER'] is an empty string on GitHub Actions macOS runners.
|
|
|
|
target ansible_host=localhost ansible_user="{{ lookup('pipe', 'whoami') }}"
|
|
|
|
|
|
|
|
[test-targets]
|
|
|
|
target
|
|
|
|
|
|
|
|
[linux_containers]
|
|
|
|
|
|
|
|
[issue905]
|
|
|
|
ssh-common-args ansible_host=localhost ansible_user="{{ lookup('pipe', 'whoami') }}"
|
|
|
|
|
|
|
|
[issue905:vars]
|
|
|
|
ansible_ssh_common_args=-o PermitLocalCommand=yes -o LocalCommand="touch {{ ssh_args_canary_file }}"
|
|
|
|
ssh_args_canary_file=/tmp/ssh_args_by_inv_{{ inventory_hostname }}
|
|
|
|
|
|
|
|
[tt_targets_bare]
|
|
|
|
tt-bare
|
|
|
|
|
|
|
|
[tt_targets_bare:vars]
|
|
|
|
ansible_host=localhost
|
|
|
|
|
|
|
|
[tt_become_bare]
|
|
|
|
tt-become-bare
|
|
|
|
|
|
|
|
[tt_become_bare:vars]
|
|
|
|
ansible_host=localhost
|
|
|
|
ansible_user="{{ lookup('pipe', 'whoami') }}"
|
|
|
|
|
|
|
|
[tt_become_by_inv]
|
|
|
|
tt-become-user ansible_become=true ansible_become_user="{{ 'root' | trim }}"
|
|
|
|
|
|
|
|
[tt_become_by_inv:vars]
|
|
|
|
ansible_host=localhost
|
|
|
|
ansible_user="{{ lookup('pipe', 'whoami') }}"
|
|
|
|
|
|
|
|
[tt_targets_inventory]
|
|
|
|
tt-password ansible_password="{{ 'has_sudo_nopw_password' | trim }}" ansible_user=mitogen__has_sudo_nopw
|
|
|
|
tt-port ansible_password=has_sudo_nopw_password ansible_port="{{ 22 | int }}" ansible_user=mitogen__has_sudo_nopw
|
|
|
|
tt-remote-user ansible_password=has_sudo_nopw_password ansible_user="{{ 'mitogen__has_sudo_nopw' | trim }}"
|
|
|
|
|
|
|
|
[tt_targets_inventory:vars]
|
|
|
|
ansible_host=localhost
|