1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3239 from holta/test.yml-local_facts

test.yml: Document ansible_facts['distribution'] etc — "avoid ansible_distribution since Ansible 2.7"
This commit is contained in:
A Holt 2022-06-07 13:56:33 -04:00 committed by GitHub
commit 301c44b70c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,9 +56,19 @@
var: f
- debug:
var: ansible_local.local_facts
var: ansible_local.local_facts # SEE: /opt/iiab/iiab/scripts/local_facts.fact
- debug:
var: ansible_local.local_facts.os_ver
# Since Ansible 2.7, avoid ansible_distribution: https://github.com/iiab/iiab/pull/3237
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#commonly-used-facts
- debug:
var: ansible_facts['distribution'] # ansible_facts.distribution ?
- debug:
var: ansible_facts['os_family'] # ansible_facts.os_family ?
- debug:
var: ansible_facts['distribution_major_version'] # ansible_facts.distribution_major_version ?
- debug:
var: ansible_architecture
- debug: