2 # Defines deployment design and assigns role to server groups
10 any_errors_fatal: true
17 delegate_facts_host: True
20 # If we can't get python2 installed before any module is used we will fail
21 # so just try what we can to get it installed
22 - name: check for python2
26 register: systempython2
28 - name: install python2 for debian based systems
29 raw: sudo apt-get -y install python-simplejson
32 - systempython2.stat is undefined or systempython2.stat.exists == false
34 - name: install python2 for fedora
35 raw: sudo dnf -y install python creates=/usr/bin/python
38 - systempython2.stat is undefined or systempython2.stat.exists == false
40 - name: install python2 for opensuse
41 raw: sudo zypper -n install python-base creates=/usr/bin/python2.7
44 - systempython2.stat is undefined or systempython2.stat.exists == false
49 - not delegate_facts_host | bool
51 - name: gather and delegate facts
53 delegate_to: "{{ item }}"
55 with_items: "{{ groups['all'] }}"
58 - delegate_facts_host | bool
60 - name: install required packages for fedora > 23
61 raw: sudo dnf -y install python2-dnf libselinux-python ntp
63 - ansible_distribution == 'Fedora'
64 - ansible_distribution_major_version|int >= 23
78 tags: ['ceph_update_config']
81 tags: ['ceph_update_config']
103 - name: rsync ceph-volume to test nodes on centos
105 src: "{{ toxinidir}}/../../../../ceph_volume"
106 dest: "/usr/lib/python2.7/site-packages"
108 when: ansible_os_family == "RedHat"
110 - name: rsync ceph-volume to test nodes on ubuntu
112 src: "{{ toxinidir}}/../../../../ceph_volume"
113 dest: "/usr/lib/python2.7/dist-packages"
115 when: ansible_os_family == "Debian"
121 - role: ceph-defaults