Merge "Add legacy fact setting" into stable/train
This commit is contained in:
commit
c3396e2740
|
@ -18,6 +18,15 @@
|
||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
ignore_unreachable: false
|
ignore_unreachable: false
|
||||||
become: false
|
become: false
|
||||||
|
tasks:
|
||||||
|
- name: Set legacy facts
|
||||||
|
set_fact:
|
||||||
|
ansible_distribution: "{{ ansible_facts['distribution'] }}"
|
||||||
|
ansible_distribution_major_version: "{{ ansible_facts['distribution_major_version'] }}"
|
||||||
|
ansible_distribution_release: "{{ ansible_facts['distribution_release'] }}"
|
||||||
|
ansible_distribution_version: "{{ ansible_facts['distribution_version'] }}"
|
||||||
|
ansible_os_family: "{{ ansible_facts['os_family'] }}"
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
|
@ -31,6 +40,14 @@
|
||||||
# we will simply ignore unreachable nodes and errors, and let the
|
# we will simply ignore unreachable nodes and errors, and let the
|
||||||
# Ansible reports the failure in the next plays.
|
# Ansible reports the failure in the next plays.
|
||||||
ignore_unreachable: true
|
ignore_unreachable: true
|
||||||
|
tasks:
|
||||||
|
- name: Set legacy facts
|
||||||
|
set_fact:
|
||||||
|
ansible_distribution: "{{ ansible_facts['distribution'] }}"
|
||||||
|
ansible_distribution_major_version: "{{ ansible_facts['distribution_major_version'] }}"
|
||||||
|
ansible_distribution_release: "{{ ansible_facts['distribution_release'] }}"
|
||||||
|
ansible_distribution_version: "{{ ansible_facts['distribution_version'] }}"
|
||||||
|
ansible_os_family: "{{ ansible_facts['os_family'] }}"
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue