mirror of https://github.com/ceph/ceph-ansible.git
Use yum and apt modules instead of package to provide Ansible <2.0 support; fix typo
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>pull/542/head
parent
bbcdf2fde7
commit
fc2ace7ba0
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
# When set to true both groups of packages are purged.
|
# When set to true both groups of packages are purged.
|
||||||
# This can couse problem with qemu-kvm
|
# This can cause problem with qemu-kvm
|
||||||
purge_all_packages: true
|
purge_all_packages: true
|
||||||
|
|
||||||
ceph_packages:
|
ceph_packages:
|
||||||
|
@ -147,20 +147,42 @@
|
||||||
when:
|
when:
|
||||||
osd_group_name in group_names
|
osd_group_name in group_names
|
||||||
|
|
||||||
- name: purge ceph packages
|
- name: purge ceph packages with yum
|
||||||
package:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ ceph_packages }}"
|
- "{{ ceph_packages }}"
|
||||||
|
when:
|
||||||
|
ansible_distribution != 'Ubuntu'
|
||||||
|
|
||||||
- name: purge remaining ceph packages
|
- name: purge ceph packages with apt
|
||||||
package:
|
apt:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- "{{ ceph_packages }}"
|
||||||
|
when:
|
||||||
|
ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
|
- name: purge remaining ceph packages with yum
|
||||||
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ ceph_remaining_packages }}"
|
- "{{ ceph_remaining_packages }}"
|
||||||
when:
|
when:
|
||||||
|
ansible_distribution != 'Ubuntu' and
|
||||||
|
purge_all_packages == true
|
||||||
|
|
||||||
|
- name: purge remaining ceph packages with apt
|
||||||
|
apt:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- "{{ ceph_remaining_packages }}"
|
||||||
|
when:
|
||||||
|
ansible_distribution == 'Ubuntu' and
|
||||||
purge_all_packages == true
|
purge_all_packages == true
|
||||||
|
|
||||||
- name: remove config
|
- name: remove config
|
||||||
|
|
Loading…
Reference in New Issue