- 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:
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
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