Install ansible.posix.debug stdout callback plugin

ansible.builtin.debug is redirected to ansible.posix.debug.
We need to install the collection explicitly.

This needs to be fixed for stdout callback plugin related changes
in ansible-runner >=2.2.0.

Also, increases ansible verbosity to track these issues better in
the future.

Closes-Bug: #1971703
Change-Id: Ibe883e19c25926ab302db741afae70821209a350
This commit is contained in:
rabi 2022-05-06 09:43:03 +05:30
parent 9f028a9a04
commit 0da3db3b94
3 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
yaql>=1.1.3 # Apache 2.0 License
ansible-core<2.12 # GPL
ansible-runner>=1.4.2,<2.2.0 # Apache
ansible-runner>=1.4.2 # Apache
ansi2html>=1.5.2 # GPL (soft-dependency of pytest-html)
pytest>=5.2.2 # MIT
pytest-ansible-playbook-runner>=0.0.2 # Apache-2.0

View File

@ -116,6 +116,7 @@ deps =
allowlist_externals =
bash
commands_pre =
ansible-galaxy collection install ansible.posix
pip install -q bindep fixtures
bindep test
commands =

View File

@ -57,7 +57,8 @@ def test_tht_ansible_syntax(pytestconfig):
run = ansible_runner.run(
playbook=play_path,
extravars={'tht_root': tht_root}
extravars={'tht_root': tht_root},
verbosity=3
)
try: