From 2cd98ceda4b36613692941a0988f7ed951f21a9e Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 22 Jul 2021 09:58:03 -0400 Subject: [PATCH] ceph-volume/tests: use ansible_facts Since inject_facts_as_vars is set to false in the ansible.cfg file then we have to update the references to use ansible_facts[] instead of ansible_. Signed-off-by: Dimitri Savineau (cherry picked from commit 842fc2b605a2321a031a240c4aa4348c1be24e14) --- .../ceph_volume/tests/functional/playbooks/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml b/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml index 0c1d13f8f1a2f..e5185e3fcdfc7 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml +++ b/src/ceph-volume/ceph_volume/tests/functional/playbooks/deploy.yml @@ -75,8 +75,8 @@ - name: install required packages for fedora > 23 raw: sudo dnf -y install python2-dnf libselinux-python ntp when: - - ansible_distribution == 'Fedora' - - ansible_distribution_major_version|int >= 23 + - ansible_facts['distribution'] == 'Fedora' + - ansible_facts['distribution_major_version']|int >= 23 - name: check if it is atomic host stat: @@ -120,7 +120,7 @@ dest: "/usr/lib/python3.6/site-packages" use_ssh_args: true when: - - ansible_os_family == "RedHat" + - ansible_facts['os_family'] == "RedHat" - inventory_hostname in groups.get(osd_group_name, []) - name: rsync ceph-volume to test nodes on ubuntu @@ -129,7 +129,7 @@ dest: "/usr/lib/python2.7/dist-packages" use_ssh_args: true when: - - ansible_os_family == "Debian" + - ansible_facts['os_family'] == "Debian" - inventory_hostname in groups.get(osd_group_name, []) - name: run ceph-config role -- 2.39.5