2018-09-07 20:45:43 +08:00
|
|
|
---
|
|
|
|
- name: red hat based systems - repo handling
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ceph_origin == 'repository'
|
2018-09-07 20:45:43 +08:00
|
|
|
block:
|
|
|
|
- name: add nfs-ganesha stable repository
|
|
|
|
yum_repository:
|
|
|
|
name: nfs_ganesha_stable
|
|
|
|
description: nfs-ganesha stable repo
|
|
|
|
gpgcheck: yes
|
|
|
|
state: present
|
|
|
|
gpgkey: "{{ ceph_stable_key }}"
|
|
|
|
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/$basearch"
|
|
|
|
when:
|
2019-06-25 23:11:28 +08:00
|
|
|
- nfs_ganesha_stable | bool
|
2018-09-07 20:45:43 +08:00
|
|
|
- ceph_repository == 'community'
|
|
|
|
|
|
|
|
- name: red hat based systems - dev repo related tasks
|
|
|
|
block:
|
|
|
|
- name: fetch nfs-ganesha red hat development repository
|
|
|
|
uri:
|
2021-03-03 22:43:50 +08:00
|
|
|
url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_facts['distribution'] | lower }}/{{ ansible_facts['distribution_major_version'] }}/flavors/{{ nfs_ganesha_flavor }}/repo
|
2018-09-07 20:45:43 +08:00
|
|
|
return_content: yes
|
|
|
|
register: nfs_ganesha_dev_yum_repo
|
|
|
|
|
|
|
|
- name: add nfs-ganesha development repository
|
|
|
|
copy:
|
|
|
|
content: "{{ nfs_ganesha_dev_yum_repo.content }}"
|
|
|
|
dest: /etc/yum.repos.d/nfs-ganesha-dev.repo
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
backup: yes
|
|
|
|
when:
|
2019-06-25 23:11:28 +08:00
|
|
|
- nfs_ganesha_dev | bool
|
2018-09-07 20:45:43 +08:00
|
|
|
- ceph_repository == 'dev'
|
|
|
|
|
|
|
|
- name: red hat based systems - install nfs packages
|
|
|
|
block:
|
|
|
|
- name: install nfs cephfs gateway
|
|
|
|
package:
|
|
|
|
name: nfs-ganesha-ceph
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-04-01 23:46:15 +08:00
|
|
|
when: nfs_file_gw
|
2018-09-07 20:45:43 +08:00
|
|
|
|
|
|
|
- name: install redhat nfs-ganesha-rgw and ceph-radosgw packages
|
|
|
|
package:
|
2018-11-08 17:26:58 +08:00
|
|
|
name: ['nfs-ganesha-rgw', 'ceph-radosgw']
|
2018-09-07 20:45:43 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-06-25 23:11:28 +08:00
|
|
|
when: nfs_obj_gw | bool
|
2020-02-07 04:41:46 +08:00
|
|
|
|
|
|
|
- name: install nfs-ganesha-rados-urls
|
|
|
|
package:
|
|
|
|
name: nfs-ganesha-rados-urls
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
when:
|
|
|
|
- nfs_obj_gw | bool
|
|
|
|
- ceph_repository == 'rhcs'
|