Browse Source

Merge "Add legacy fact setting" into stable/train

changes/53/781953/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
c3396e2740
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      common/deploy-steps-playbooks-common.yaml

+ 17
- 0
common/deploy-steps-playbooks-common.yaml View File

@ -18,6 +18,15 @@
any_errors_fatal: true
ignore_unreachable: 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:
- facts
@ -31,6 +40,14 @@
# we will simply ignore unreachable nodes and errors, and let the
# Ansible reports the failure in the next plays.
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:
- facts


Loading…
Cancel
Save