ansible-core deprecates injecting facts as top-level variables (removal is scheduled for 2.24, see #364). Three roles still read a bare fact: system_baseline (reboot check, ansible_os_family), docker (APT source line, ansible_distribution_release) and gitea_runner (re-registration backup name, ansible_date_time). With inject_facts_as_vars set to false the system_baseline reboot check failed with "'ansible_os_family' is undefined". They now read ansible_facts[...]; the argument specs and READMEs that name the facts follow. run_molecule_in_ci_image.sh exports ANSIBLE_INJECT_FACT_VARS=False, so a role that reads an injected fact fails its scenario, and a script test keeps the export in place. Refs #364 Assisted-by: Claude Code:claude-sonnet-5-5
16 lines
965 B
YAML
16 lines
965 B
YAML
---
|
|
bugfixes:
|
|
- >-
|
|
docker - Read the distribution release through ``ansible_facts['distribution_release']`` for the APT
|
|
source line, so the role works with ``inject_facts_as_vars`` set to false and in the ansible-core
|
|
release that stops injecting facts as variables. The source line is unchanged.
|
|
- >-
|
|
gitea_runner - Read the timestamp of the forced re-registration backup through
|
|
``ansible_facts['date_time']``, so the role works with ``inject_facts_as_vars`` set to false and in
|
|
the ansible-core release that stops injecting facts as variables. The backup name is unchanged.
|
|
- >-
|
|
system_baseline - Read the OS family through ``ansible_facts['os_family']`` in the reboot check, so
|
|
the role (and its ``reboot`` entry point) works with ``inject_facts_as_vars`` set to false and in
|
|
the ansible-core release that stops injecting facts as variables. Before, the task failed with
|
|
``'ansible_os_family' is undefined`` there.
|