You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/ansible/integration/ssh
Alex Willmer c1296b5d75 ansible_mitogen: Support ANSIBLE_SSH_VERBOSITY with Ansible >= 12
In vanilla Ansible >= 12 (ansible-core 2.19)
- ssh connection plugin `verbosity` controls `ssh [-v[v[v]]]`
- config option `DEFAULT_VERBOSITY` controls whether that output is displayed

In vanilla Ansible <= 11 (ansible-core <= 2.18)
- `DEFAULT_VERBOSITY` controls both `ssh` verbosity & display verbositty

As of this change
- Mitogen + Ansible >= 12 behaviour matches vanilla Ansible >= 12.
- Mitogen + Ansible <= 11 behaviour remains unchanged
  - `DEFAULT_VERBOSITY` only controls display verbosity.
- Mitogen + Ansible respect the Ansible variable `mitogen_ssh_debug_level`

I've chosen not to retroactively replicate the old vanilla Ansible behaviour
in Mitogen + Ansible <= 11 cases. I'm pretty sure it was an oversight,
rather than a design choice, but Ansible+Mitogen with `ANSIBLE_VERBOSITY=3`
is already very verbose.

fixes #1282

See
- https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-verbosity
- https://docs.ansible.com/ansible/devel/collections/ansible/builtin/ssh_connection.html#parameter-verbosity
5 months ago
..
all.yml ansible_mitogen: Support ANSIBLE_SSH_VERBOSITY with Ansible >= 12 5 months ago
args_by_inv.yml ansible_mitogen: Template ssh_*_args connection options 1 year ago
args_by_play_taskvar.yml ansible_mitogen: Templated host option (e.g. ansible_host, ansible_ssh_host) 1 year ago
config.yml tests: Improve Ansible fail_msg formatting 1 year ago
password.yml CI: Test SSH password authentication without sshpass command 5 months ago
templated_by_inv.yml ansible_mitogen: Handle templated connection passwords and ansible_ssh_password 1 year ago
templated_by_play_keyword.yml ansible_mitogen: Templated host option (e.g. ansible_host, ansible_ssh_host) 1 year ago
templated_by_play_taskvar.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 5 months ago
templated_by_task_keyword.yml ansible_mitogen: Templated host option (e.g. ansible_host, ansible_ssh_host) 1 year ago
timeouts.yml CI: replace stdout=yaml with result_format=yaml for Ansible >= 6 tests 5 months ago
variables.yml CI: replace stdout=yaml with result_format=yaml for Ansible >= 6 tests 5 months ago
verbosity.yml ansible_mitogen: Support ANSIBLE_SSH_VERBOSITY with Ansible >= 12 5 months ago