The Molecule job prints two ansible-core deprecation warnings, once per scenario:
[DEPRECATION WARNING]: oneline has been deprecated. Use another callback plugin, or vendor and/or move the oneline callback to a collection. This feature will be removed from ansible-core version 2.23.
[DEPRECATION WARNING]: tree has been deprecated. Use another callback plugin, or vendor and/or move the tree callback to a collection. This feature will be removed from ansible-core version 2.23.
Origin: <unknown>
Seen in the logs of Molecule runs 5866 (cancelled by a newer push, three scenarios finished) and 5872 (read while it was still running) on pull request #405, ansible-core 2.22.0, the version pinned in requirements-dev.txt. This issue records what they are and why the Collection does nothing about them, so that the next person who sees them does not have to find out again.
What was checked
Where they come from.ansible-config dump --only-changed and ansible-doc -l -t callback print both warnings on ansible-core 2.22.0 with no Collection on the path (ANSIBLE_COLLECTIONS_PATH pointing nowhere); ansible --version, ansible-playbook --version and ansible-config list print neither. The command enumerates every callback plugin, including the deprecated ones. Which tool in the Molecule job calls it (Molecule or ansible-lint) was not checked, so that part is an inference from the log.
No Collection code involved. The warnings say Origin: <unknown>; a warning raised by a role names the file and line, as the injected-facts warning in #364 did (roles/system_baseline/tasks/reboot.yml:7). A search of the repository (excluding .git, the virtual environment and lock files) finds no stdout_callback, callbacks_enabled, ANSIBLE_STDOUT_CALLBACK, ANSIBLE_CALLBACK or any use of the oneline or tree callbacks.
Nothing else. The Build job (run 5864) and the Lint job (run 5865) on the same commit print no deprecation warning. The two Molecule logs above print no other one. That is the log of a run in progress for 5872, so a scenario that had not started when it was read could still print another.
Impact
None for the roles, and none for consumers, unless a consumer configures the oneline or tree callback in their own ansible.cfg; ansible-core 2.23 removes them, and the warnings stop with it.
Upcoming removals this Collection does depend on
Injected facts (inject_facts_as_vars defaulting to true), removal scheduled for ansible-core 2.24: tracked in #364, fixed in #405, and the Molecule job now runs with fact injection off.
Decision
Won't fix. There is nothing to change in the Collection for the two callbacks.
Not recommended: setting ANSIBLE_DEPRECATION_WARNINGS=False in the Molecule job to hide them. It would also hide the warnings that do point at Collection code, such as the injected-facts one in #364, which is the reason the job shows them at all.
Reopen if a deprecation warning with an Origin: inside roles/ appears in a CI log, or when the pin moves to an ansible-core release that does not ship the callbacks and a warning remains.
Assisted-by: Claude Code:claude-sonnet-5-5
## Problem
The Molecule job prints two ansible-core deprecation warnings, once per scenario:
```
[DEPRECATION WARNING]: oneline has been deprecated. Use another callback plugin, or vendor and/or move the oneline callback to a collection. This feature will be removed from ansible-core version 2.23.
[DEPRECATION WARNING]: tree has been deprecated. Use another callback plugin, or vendor and/or move the tree callback to a collection. This feature will be removed from ansible-core version 2.23.
Origin: <unknown>
```
Seen in the logs of Molecule runs 5866 (cancelled by a newer push, three scenarios finished) and 5872 (read while it was still running) on pull request #405, ansible-core 2.22.0, the version pinned in `requirements-dev.txt`. This issue records what they are and why the Collection does nothing about them, so that the next person who sees them does not have to find out again.
## What was checked
- **Where they come from.** `ansible-config dump --only-changed` and `ansible-doc -l -t callback` print both warnings on ansible-core 2.22.0 with no Collection on the path (`ANSIBLE_COLLECTIONS_PATH` pointing nowhere); `ansible --version`, `ansible-playbook --version` and `ansible-config list` print neither. The command enumerates every callback plugin, including the deprecated ones. Which tool in the Molecule job calls it (Molecule or ansible-lint) was not checked, so that part is an inference from the log.
- **No Collection code involved.** The warnings say `Origin: <unknown>`; a warning raised by a role names the file and line, as the injected-facts warning in #364 did (`roles/system_baseline/tasks/reboot.yml:7`). A search of the repository (excluding `.git`, the virtual environment and lock files) finds no `stdout_callback`, `callbacks_enabled`, `ANSIBLE_STDOUT_CALLBACK`, `ANSIBLE_CALLBACK` or any use of the `oneline` or `tree` callbacks.
- **Nothing else.** The Build job (run 5864) and the Lint job (run 5865) on the same commit print no deprecation warning. The two Molecule logs above print no other one. That is the log of a run in progress for 5872, so a scenario that had not started when it was read could still print another.
## Impact
None for the roles, and none for consumers, unless a consumer configures the `oneline` or `tree` callback in their own `ansible.cfg`; ansible-core 2.23 removes them, and the warnings stop with it.
## Upcoming removals this Collection does depend on
- Injected facts (`inject_facts_as_vars` defaulting to true), removal scheduled for ansible-core 2.24: tracked in #364, fixed in #405, and the Molecule job now runs with fact injection off.
## Decision
Won't fix. There is nothing to change in the Collection for the two callbacks.
Not recommended: setting `ANSIBLE_DEPRECATION_WARNINGS=False` in the Molecule job to hide them. It would also hide the warnings that do point at Collection code, such as the injected-facts one in #364, which is the reason the job shows them at all.
Reopen if a deprecation warning with an `Origin:` inside `roles/` appears in a CI log, or when the pin moves to an ansible-core release that does not ship the callbacks and a warning remains.
Assisted-by: Claude Code:claude-sonnet-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The Molecule job prints two ansible-core deprecation warnings, once per scenario:
Seen in the logs of Molecule runs 5866 (cancelled by a newer push, three scenarios finished) and 5872 (read while it was still running) on pull request #405, ansible-core 2.22.0, the version pinned in
requirements-dev.txt. This issue records what they are and why the Collection does nothing about them, so that the next person who sees them does not have to find out again.What was checked
ansible-config dump --only-changedandansible-doc -l -t callbackprint both warnings on ansible-core 2.22.0 with no Collection on the path (ANSIBLE_COLLECTIONS_PATHpointing nowhere);ansible --version,ansible-playbook --versionandansible-config listprint neither. The command enumerates every callback plugin, including the deprecated ones. Which tool in the Molecule job calls it (Molecule or ansible-lint) was not checked, so that part is an inference from the log.Origin: <unknown>; a warning raised by a role names the file and line, as the injected-facts warning in #364 did (roles/system_baseline/tasks/reboot.yml:7). A search of the repository (excluding.git, the virtual environment and lock files) finds nostdout_callback,callbacks_enabled,ANSIBLE_STDOUT_CALLBACK,ANSIBLE_CALLBACKor any use of theonelineortreecallbacks.Impact
None for the roles, and none for consumers, unless a consumer configures the
onelineortreecallback in their ownansible.cfg; ansible-core 2.23 removes them, and the warnings stop with it.Upcoming removals this Collection does depend on
inject_facts_as_varsdefaulting to true), removal scheduled for ansible-core 2.24: tracked in #364, fixed in #405, and the Molecule job now runs with fact injection off.Decision
Won't fix. There is nothing to change in the Collection for the two callbacks.
Not recommended: setting
ANSIBLE_DEPRECATION_WARNINGS=Falsein the Molecule job to hide them. It would also hide the warnings that do point at Collection code, such as the injected-facts one in #364, which is the reason the job shows them at all.Reopen if a deprecation warning with an
Origin:insideroles/appears in a CI log, or when the pin moves to an ansible-core release that does not ship the callbacks and a warning remains.Assisted-by: Claude Code:claude-sonnet-5-5