2018-09-07 20:45:43 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +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:
|
2024-02-14 18:14:02 +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:
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Add nfs-ganesha stable repository
|
|
|
|
ansible.builtin.package:
|
2022-06-15 19:45:48 +08:00
|
|
|
name: "{{ centos_release_nfs }}"
|
2020-05-15 23:20:08 +08:00
|
|
|
state: present
|
2018-09-07 20:45:43 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Red hat based systems - dev repo related tasks
|
|
|
|
when:
|
|
|
|
- nfs_ganesha_dev | bool
|
|
|
|
- ceph_repository == 'dev'
|
2018-09-07 20:45:43 +08:00
|
|
|
block:
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Add nfs-ganesha dev repo
|
|
|
|
ansible.builtin.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
|
2024-02-14 18:14:02 +08:00
|
|
|
mode: "0644"
|
2020-07-03 03:23:09 +08:00
|
|
|
force: true
|
2018-09-07 20:45:43 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Red hat based systems - install nfs packages
|
2018-09-07 20:45:43 +08:00
|
|
|
block:
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Install nfs cephfs gateway
|
|
|
|
ansible.builtin.package:
|
2019-10-29 01:54:16 +08:00
|
|
|
name: ['nfs-ganesha-ceph', 'nfs-ganesha-rados-grace']
|
2024-02-14 18:14:02 +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
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Install redhat nfs-ganesha-rgw and ceph-radosgw packages
|
|
|
|
ansible.builtin.package:
|
2020-02-07 04:41:46 +08:00
|
|
|
name: ['nfs-ganesha-rgw', 'nfs-ganesha-rados-grace', 'nfs-ganesha-rados-urls', 'ceph-radosgw']
|
2024-02-14 18:14:02 +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
|