2016-05-06 02:20:03 +08:00
|
|
|
---
|
|
|
|
- name: create ganesha conf directory
|
|
|
|
file:
|
|
|
|
path: /etc/ganesha
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
2016-07-21 21:17:19 +08:00
|
|
|
- name: get user create output
|
2017-02-20 17:03:49 +08:00
|
|
|
command: docker logs ceph-rgw-user-{{ ansible_hostname }}
|
2016-11-27 04:31:56 +08:00
|
|
|
always_run: true
|
2016-07-21 21:17:19 +08:00
|
|
|
register: rgwuser
|
|
|
|
|
2016-05-06 02:20:03 +08:00
|
|
|
- name: generate ganesha configuration file
|
|
|
|
action: config_template
|
|
|
|
args:
|
|
|
|
src: "{{ playbook_dir }}/roles/ceph-common/templates/ganesha.conf.j2"
|
|
|
|
dest: /etc/ganesha/ganesha.conf
|
|
|
|
owner: "root"
|
|
|
|
group: "root"
|
|
|
|
mode: "0644"
|
|
|
|
config_overrides: "{{ ganesha_conf_overrides }}"
|
|
|
|
config_type: ini
|