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:
Jesse Pretorius 2018-09-03 15:23:14 +01:00
parent f270afb08c
commit 07be558918

View File

@ -41,24 +41,29 @@
when:
- pre_config_osa | default(true) | bool
- name: Create base directories
- name: Create OSA configuration directory
file:
path: "{{ item }}"
path: "/etc/openstack_deploy"
state: directory
owner: "root"
group: "root"
mode: "0755"
with_items:
- /etc/openstack_deploy
- /etc/openstack_deploy/conf.d
- /etc/openstack_deploy/env.d
when:
- pre_config_osa | default(true) | bool
- name: Create Basic configs
shell: cp -R etc/openstack_deploy/* /etc/openstack_deploy
- name: Copy default config files and directories
shell: >-
rsync
-av
--include='*.yml'
--include='*/'
--exclude='*'
/opt/openstack-ansible/etc/openstack_deploy/
/etc/openstack_deploy/
args:
executable: /bin/bash
chdir: /opt/openstack-ansible
warn: no
when:
- pre_config_osa | default(true) | bool