24 lines
600 B
YAML
24 lines
600 B
YAML
---
|
|
- 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
|
|
|
|
- name: Ensure GlusterFS client will reinstall if the PPA was just added.
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- glusterfs-client
|
|
when: glusterfs_ppa_added.changed
|
|
|
|
- name: Ensure GlusterFS client is installed.
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: installed
|
|
default_release: "{{ glusterfs_default_release }}"
|
|
with_items:
|
|
- glusterfs-client
|