2020-07-01 16:47:45 +08:00
|
|
|
---
|
|
|
|
- name: create rados gateway instance directories
|
|
|
|
file:
|
|
|
|
path: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}"
|
|
|
|
state: directory
|
2020-09-26 00:15:02 +08:00
|
|
|
owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
|
|
|
|
group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
|
2020-07-01 16:47:45 +08:00
|
|
|
mode: "{{ ceph_directories_mode | default('0755') }}"
|
|
|
|
with_items: "{{ rgw_instances }}"
|
|
|
|
|
|
|
|
- name: generate environment file
|
|
|
|
copy:
|
|
|
|
dest: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}/EnvironmentFile"
|
|
|
|
owner: "root"
|
|
|
|
group: "root"
|
|
|
|
mode: "0644"
|
|
|
|
content: |
|
|
|
|
INST_NAME={{ item.instance_name }}
|
|
|
|
with_items: "{{ rgw_instances }}"
|
|
|
|
when:
|
|
|
|
- containerized_deployment | bool
|
|
|
|
- rgw_instances is defined
|