2016-05-06 02:20:03 +08:00
|
|
|
---
|
2019-05-14 20:51:32 +08:00
|
|
|
- name: set_fact container_exec_cmd
|
2017-10-04 16:39:17 +08:00
|
|
|
set_fact:
|
2019-09-10 01:07:02 +08:00
|
|
|
container_exec_cmd: "{{ container_binary }} exec ceph-nfs-{{ ceph_nfs_service_suffix | default(ansible_hostname) }}"
|
2019-05-22 16:02:42 +08:00
|
|
|
when: containerized_deployment | bool
|
2017-10-04 16:39:17 +08:00
|
|
|
|
2017-09-27 05:16:43 +08:00
|
|
|
- name: include pre_requisite_non_container.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: pre_requisite_non_container.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: not containerized_deployment | bool
|
2017-09-19 22:19:14 +08:00
|
|
|
|
2017-09-27 05:16:43 +08:00
|
|
|
- name: include pre_requisite_container.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: pre_requisite_container.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: containerized_deployment | bool
|
2017-09-27 05:16:43 +08:00
|
|
|
|
2017-09-19 22:19:14 +08:00
|
|
|
- name: include create_rgw_nfs_user.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
import_tasks: create_rgw_nfs_user.yml
|
2019-05-20 21:58:10 +08:00
|
|
|
when: groups.get(mon_group_name, []) | length > 0
|
2017-09-19 22:19:14 +08:00
|
|
|
|
2017-09-27 05:16:43 +08:00
|
|
|
# NOTE (leseb): workaround for issues with ganesha and librgw
|
|
|
|
- name: include ganesha_selinux_fix.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
import_tasks: ganesha_selinux_fix.yml
|
2017-09-19 22:19:14 +08:00
|
|
|
when:
|
2019-05-22 16:02:42 +08:00
|
|
|
- not containerized_deployment | bool
|
2017-09-27 05:16:43 +08:00
|
|
|
- ansible_os_family == 'RedHat'
|
2016-05-06 02:20:03 +08:00
|
|
|
|
2019-05-20 21:58:10 +08:00
|
|
|
- name: copy rgw keyring when deploying internal ganesha with external ceph cluster
|
|
|
|
copy:
|
|
|
|
src: "/etc/ceph/{{ cluster }}.{{ ceph_nfs_ceph_user.name }}.keyring"
|
|
|
|
dest: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}/keyring"
|
|
|
|
mode: '0600'
|
|
|
|
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
remote_src: true
|
|
|
|
when:
|
|
|
|
- groups.get(mon_group_name, []) | length == 0
|
|
|
|
- ceph_nfs_ceph_user is defined
|
|
|
|
|
2017-09-27 05:16:43 +08:00
|
|
|
- name: include start_nfs.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
import_tasks: start_nfs.yml
|