2016-11-11 04:02:58 +00:00
|
|
|
---
|
|
|
|
- name: Add PPA for GlusterFS.
|
|
|
|
apt_repository:
|
|
|
|
repo: 'ppa:gluster/glusterfs-{{ glusterfs_ppa_version }}'
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
register: glusterfs_ppa_added
|
|
|
|
when: glusterfs_ppa_use
|
|
|
|
|
2016-11-20 17:05:43 +00:00
|
|
|
- name: Ensure GlusterFS client will reinstall if the PPA was just added.
|
2016-11-11 04:02:58 +00:00
|
|
|
apt:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
with_items:
|
|
|
|
- glusterfs-client
|
|
|
|
when: glusterfs_ppa_added.changed
|
|
|
|
|
2016-11-20 17:05:43 +00:00
|
|
|
- name: Ensure GlusterFS client is installed.
|
2016-11-11 04:02:58 +00:00
|
|
|
apt:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: installed
|
|
|
|
default_release: "{{ glusterfs_default_release }}"
|
|
|
|
with_items:
|
|
|
|
- glusterfs-client
|