
Various ceph-related tasks were missing a 'become' that would allow them to work as a non-root user. This seems to only cause a problem after an initial deployment, perhaps due to the recursive ownership & permissions changes at the end of the ceph.yml and external_ceph.yml files. This change adds the necessary becomes. Change-Id: I887c7b3bdef49db1dd1bf9e5bdbf5dc47b7f41af Closes-Bug: #1795125
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
- name: Ensuring config directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}/manila-share"
|
|
state: "directory"
|
|
become: true
|
|
when:
|
|
- inventory_hostname in groups['manila-share']
|
|
|
|
- name: Copying over ceph.conf for manila
|
|
template:
|
|
src: "{{ node_custom_config }}/manila/ceph.conf"
|
|
dest: "{{ node_config_directory }}/manila-share/ceph.conf"
|
|
mode: "0660"
|
|
become: true
|
|
when:
|
|
- inventory_hostname in groups['manila-share']
|
|
notify:
|
|
- Restart manila-share container
|
|
|
|
- name: Copy over Ceph keyring files for manila
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "{{ node_config_directory }}/manila-share/"
|
|
mode: "0600"
|
|
become: true
|
|
with_fileglob:
|
|
- "{{ node_custom_config }}/manila/ceph.client*"
|
|
when:
|
|
- inventory_hostname in groups['manila-share']
|
|
notify:
|
|
- Restart manila-share container
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
become: true
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
recurse: yes
|
|
owner: "{{ config_owner_user }}"
|
|
group: "{{ config_owner_group }}"
|
|
when: inventory_hostname in groups[item]
|
|
with_items:
|
|
- "manila-share"
|