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/ansible_mitogen
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
..
compat Remove vendored mitogen.compat.simplejson 3 years ago
plugins Fix usage of connection_loader__get by wrapping the correct upstream functions. 11 months ago
utils ansible_mitogen: alpha datatag handling & CI for Ansible 12 (ansible-core 2.19) 6 months ago
__init__.py ansible: restructure to avoid intermediate imports 8 years ago
affinity.py ansible_mitogen: Remove Python 2.4 and 2.5 backward compatibility fallbacks 1 year ago
connection.py ansible_mitogen: Support ANSIBLE_SSH_VERBOSITY with Ansible >= 12 5 months ago
loaders.py Allow running with ansible-core 2.19 6 months ago
logging.py ansible_mitogen: Remove fallback imports for Ansible < 2.10 1 year ago
mixins.py ansible_mitogen: Replace use of `ansible.parsing.utils.jsonify.jsonify()` 6 months ago
module_finder.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 2 years ago
parsing.py ansible_mitogen: Standardise __future__ imports to match Ansible 4 years ago
planner.py ansible_mitogen: alpha datatag handling & CI for Ansible 12 (ansible-core 2.19) 6 months ago
process.py ansible_mitogen: Remove Python 2.4 and 2.5 backward compatibility fallbacks 1 year ago
runner.py ansible_mitogen: alpha datatag handling & CI for Ansible 12 (ansible-core 2.19) 6 months ago
services.py ansible_mitogen: alpha datatag handling & CI for Ansible 12 (ansible-core 2.19) 6 months ago
strategy.py Disallow connection redirection of sub-connections if the top-level connection in the play is not a Mitogen connection. 11 months ago
target.py mitogen: Use pty.STD*_FILENO constants 6 months ago
transport_config.py ansible_mitogen: Support ANSIBLE_SSH_VERBOSITY with Ansible >= 12 5 months ago