2d3866c6a4
Add become to only neccesary tasks in roles: - glance - heat - horizon - keystone - neutron - nova - openvswitch Gate is also updated to use 'become' feature Change-Id: I2f3f27306e9f384148e1ad4d54d8da2ebef34d00 Partial-Implements: blueprint ansible-specific-task-become
27 lines
705 B
YAML
27 lines
705 B
YAML
---
|
|
- name: Ensuring config directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}/glance-api"
|
|
state: "directory"
|
|
mode: "0770"
|
|
when: inventory_hostname in groups['glance-api']
|
|
|
|
- name: Copy over ceph files
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "{{ node_config_directory }}/glance-api/"
|
|
mode: "0660"
|
|
with_fileglob:
|
|
- "{{ node_custom_config }}/glance/ceph*"
|
|
|
|
- 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['glance-api']
|
|
with_items:
|
|
- "glance-api"
|