MNAIO: Only copy the config files/folders required
Currently all the .example and .aio files are copied over, resulting in a confusing mess. This changes it to just copy the stuff that is actually used over instead. Change-Id: Ic6a3beb4d0084507e3017ea1663fd79fda3d1c12
This commit is contained in:
parent
f270afb08c
commit
07be558918
@ -41,24 +41,29 @@
|
|||||||
when:
|
when:
|
||||||
- pre_config_osa | default(true) | bool
|
- pre_config_osa | default(true) | bool
|
||||||
|
|
||||||
- name: Create base directories
|
- name: Create OSA configuration directory
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "/etc/openstack_deploy"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
with_items:
|
|
||||||
- /etc/openstack_deploy
|
|
||||||
- /etc/openstack_deploy/conf.d
|
|
||||||
- /etc/openstack_deploy/env.d
|
|
||||||
when:
|
when:
|
||||||
- pre_config_osa | default(true) | bool
|
- pre_config_osa | default(true) | bool
|
||||||
|
|
||||||
- name: Create Basic configs
|
- name: Copy default config files and directories
|
||||||
shell: cp -R etc/openstack_deploy/* /etc/openstack_deploy
|
shell: >-
|
||||||
|
rsync
|
||||||
|
-av
|
||||||
|
--include='*.yml'
|
||||||
|
--include='*/'
|
||||||
|
--exclude='*'
|
||||||
|
/opt/openstack-ansible/etc/openstack_deploy/
|
||||||
|
/etc/openstack_deploy/
|
||||||
args:
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
chdir: /opt/openstack-ansible
|
chdir: /opt/openstack-ansible
|
||||||
|
warn: no
|
||||||
when:
|
when:
|
||||||
- pre_config_osa | default(true) | bool
|
- pre_config_osa | default(true) | bool
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user