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:
commit
301c44b70c
1 changed files with 11 additions and 1 deletions
12
test.yml
12
test.yml
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue