From 0adee7b5898ead95b4ddcbe04b8c0b3e60d8c5b2 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 6 Apr 2018 13:06:17 -0700 Subject: [PATCH] When copying glance-swift.conf ensure mode and become used This makes it so that the file copied has the same perms as the other copied files and that become is used so that the copy works (otherwise it does not). Change-Id: I22f39ef30760701e174f304de6ff959ff60607ad --- ansible/roles/glance/tasks/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/glance/tasks/config.yml b/ansible/roles/glance/tasks/config.yml index 6015479b6c..1103d79320 100644 --- a/ansible/roles/glance/tasks/config.yml +++ b/ansible/roles/glance/tasks/config.yml @@ -86,6 +86,8 @@ - "{{ node_custom_config }}/glance/glance-swift.conf" - "{{ node_custom_config }}/glance/{{ inventory_hostname }}/glance-swift.conf" dest: "{{ node_config_directory }}/glance-api/glance-swift.conf" + mode: "0660" + become: true register: glance_swift_conf when: - glance_api.enabled | bool