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
|
|
|
|
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 }}/el$releasever/$basearch"
|
|
|
|
file: nfs_ganesha_stable
|
|
|
|
|
|
|
|
- name: add nfs-ganesha stable noarch repository
|
|
|
|
yum_repository:
|
|
|
|
name: nfs_ganesha_stable_noarch
|
|
|
|
description: nfs-ganesha stable noarch repo
|
|
|
|
gpgcheck: yes
|
|
|
|
state: present
|
|
|
|
gpgkey: "{{ ceph_stable_key }}"
|
|
|
|
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/el$releasever/noarch"
|
|
|
|
file: nfs_ganesha_stable
|
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:
|
|
|
|
url: 'https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/flavors/{{ nfs_ganesha_flavor }}/repo'
|
|
|
|
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
|