b50917fe2c
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
32 lines
831 B
YAML
32 lines
831 B
YAML
---
|
|
- name: Ensuring config directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}/glance-api"
|
|
state: "directory"
|
|
mode: "0770"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|
|
|
|
- name: Copy over ceph files
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "{{ node_config_directory }}/glance-api/"
|
|
mode: "0660"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|
|
with_fileglob:
|
|
- "{{ node_custom_config }}/glance/ceph*"
|
|
notify:
|
|
- Restart glance-api container
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
recurse: yes
|
|
owner: "{{ config_owner_user }}"
|
|
group: "{{ config_owner_group }}"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|
|
with_items:
|
|
- "glance-api"
|