ansible v12 deprecation warning: Use ansible_facts["fact_name"] (no ansible_ prefix) instead #863

Open
opened 2025-12-30 10:49:50 +01:00 by mg · 1 comment
Owner
ASK [robertdebock.bootstrap : Install bootstrap packages (package)] **********************************************************************************************************************
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: /home/ansible-dev/.ansible/roles/robertdebock.bootstrap/vars/main.yml:75:27

73
74 # Map the right set of packages, based on gathered ansible_facts.
75 bootstrap_facts_packages: "{{ _bootstrap_packages[ansible_distribution ~'_'~ ansible_distribution_major_version]|d...
                             ^ column 27

Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.

ok: [vm-test-2404.mgrote.net] => (item=python3)
```bash ASK [robertdebock.bootstrap : Install bootstrap packages (package)] ********************************************************************************************************************** [WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg. [DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24. Origin: /home/ansible-dev/.ansible/roles/robertdebock.bootstrap/vars/main.yml:75:27 73 74 # Map the right set of packages, based on gathered ansible_facts. 75 bootstrap_facts_packages: "{{ _bootstrap_packages[ansible_distribution ~'_'~ ansible_distribution_major_version]|d... ^ column 27 Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead. ok: [vm-test-2404.mgrote.net] => (item=python3) ```
mg changed title from ansible v12 deprecation warning: `Use ansible_facts["fact_name"] (no ansible_ prefix) instead` to ansible v12 deprecation warning: `Use ansible_facts["fact_name"] (no ansible_ prefix) instead` 2025-12-30 10:50:00 +01:00
mg changed title from ansible v12 deprecation warning: `Use ansible_facts["fact_name"] (no ansible_ prefix) instead` to ansible v12 deprecation warning: Use ansible_facts["fact_name"] (no ansible_ prefix) instead 2025-12-30 10:50:05 +01:00
Author
Owner
prüfen nach: https://github.com/robertdebock/ansible-role-bootstrap/pull/78
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mg/homeserver#863
No description provided.