From: Dimitri Savineau Date: Thu, 22 Jul 2021 13:58:03 +0000 (-0400) Subject: ceph-volume/tests: use ansible_facts X-Git-Tag: v16.2.6~123^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4cb1ddbdb7fa5e45176403d539a3248ccdf726d;p=ceph.git 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) --- 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 0c1d13f8f1a2..e5185e3fcdfc 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