devstack/roles/devstack-project-conf/tasks/main.yaml
Paul Belanger d3106720d2
Suppress more stats tasks
By default stat is pretty verbose, we can set no_log: true to avoid
adding this info to our logs.

Change-Id: Ia18ebfe179443382cc670ffc4363ab037c43bb85
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-02-21 16:06:49 -05:00

26 lines
723 B
YAML

- name: Ensure {{ stage_dir }}/etc exists
file:
path: "{{ stage_dir }}/etc"
state: directory
- name: Check which projects have a config folder
stat:
path: "/etc/{{ item.value.short_name }}"
with_dict: "{{ zuul.projects }}"
register: project_configs
no_log: true
- name: Copy configuration files
command: cp -pRL {{ item.stat.path }} {{ stage_dir }}/etc/{{ item.item.value.short_name }}
when: item.stat.exists
with_items: "{{ project_configs.results }}"
- name: Check if openstack has a config folder
stat:
path: "/etc/openstack"
register: openstack_configs
- name: Copy configuration files
command: cp -pRL /etc/openstack {{ stage_dir }}/etc/
when: openstack_configs.stat.exists