Fix kayobe overcloud service config save

If Kolla Ansible config files are not readable by the kayobe (stack)
user, the command will fail. This is fixed by using become.

Also improves the command output, by showing only the path of each file
rather than the full stat result.

Change-Id: I466e6a75822a1b2d2f91c9fadc9730c2cdb5bba0
TrivialFix
This commit is contained in:
Mark Goddard 2018-08-17 13:12:44 +01:00
parent 9b8ee81869
commit 27d833f13f

View File

@ -16,9 +16,13 @@
paths: "{{ node_config_directory }}" paths: "{{ node_config_directory }}"
recurse: True recurse: True
register: find_result register: find_result
become: true
- name: Save overcloud service configuration - name: Save overcloud service configuration
fetch: fetch:
src: "{{ item.path }}" src: "{{ item.path }}"
dest: "{{ config_save_path }}" dest: "{{ config_save_path }}"
with_items: "{{ find_result.files }}" with_items: "{{ find_result.files }}"
become: true
loop_control:
label: "{{ item.path }}"