
Consistently use template instead of copy. This has the added advantage of allowing variables inside ceph conf files and keyrings. Closes-Bug: 1959565 Signed-off-by: Imran Hussain <ih@imranh.co.uk> Change-Id: Ibd0ff2641a54267ff06d3c89a26915a455dff1c1
30 lines
907 B
YAML
30 lines
907 B
YAML
---
|
|
- name: Copy over ceph.conf for Glance
|
|
template:
|
|
src: "{{ node_custom_config }}/glance/ceph.conf"
|
|
dest: "{{ node_config_directory }}/glance-api/ceph.conf"
|
|
mode: "0660"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|
|
notify:
|
|
- Restart glance-api container
|
|
|
|
- name: Copy over ceph Glance keyring
|
|
template:
|
|
src: "{{ node_custom_config }}/glance/{{ ceph_glance_keyring }}"
|
|
dest: "{{ node_config_directory }}/glance-api/{{ ceph_glance_keyring }}"
|
|
mode: "0660"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|
|
notify:
|
|
- Restart glance-api container
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
file:
|
|
path: "{{ node_config_directory }}/glance-api"
|
|
recurse: yes
|
|
owner: "{{ config_owner_user }}"
|
|
group: "{{ config_owner_group }}"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|