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:
|
2020-05-15 23:20:08 +08:00
|
|
|
- name: red hat based systems - stable repo related tasks
|
2018-09-07 20:45:43 +08:00
|
|
|
when:
|
2019-06-25 23:11:28 +08:00
|
|
|
- nfs_ganesha_stable | bool
|
2018-09-07 20:45:43 +08:00
|
|
|
- ceph_repository == 'community'
|
2020-05-15 23:20:08 +08:00
|
|
|
block:
|
|
|
|
- name: add nfs-ganesha stable repository
|
2022-06-15 19:45:48 +08:00
|
|
|
package:
|
|
|
|
name: "{{ centos_release_nfs }}"
|
2020-05-15 23:20:08 +08:00
|
|
|
state: present
|
2018-09-07 20:45:43 +08:00
|
|
|
|
|
|
|
- name: red hat based systems - dev repo related tasks
|
|
|
|
block:
|
2019-12-20 01:03:57 +08:00
|
|
|
- name: add nfs-ganesha dev repo
|
2020-07-03 03:23:09 +08:00
|
|
|
get_url:
|
2021-04-29 15:01:13 +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?arch={{ ansible_facts['architecture'] }}"
|
2020-07-03 03:23:09 +08:00
|
|
|
dest: /etc/yum.repos.d/nfs-ganesha-dev.repo
|
|
|
|
force: true
|
2018-09-07 20:45:43 +08:00
|
|
|
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:
|
2019-10-29 01:54:16 +08:00
|
|
|
name: ['nfs-ganesha-ceph', 'nfs-ganesha-rados-grace']
|
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
|
2020-09-26 00:15:02 +08:00
|
|
|
when: nfs_file_gw | bool
|
2018-09-07 20:45:43 +08:00
|
|
|
|
|
|
|
- name: install redhat nfs-ganesha-rgw and ceph-radosgw packages
|
|
|
|
package:
|
2020-02-07 04:41:46 +08:00
|
|
|
name: ['nfs-ganesha-rgw', 'nfs-ganesha-rados-grace', 'nfs-ganesha-rados-urls', '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
|