blob: 9c6e06bea93bea386bc6f7d0f5292459a1bee968 [file] [log] [blame]
Andrea Frittoli (andreaf)5a9872a2017-12-15 13:55:50 +00001- name: Ensure {{ stage_dir }}/etc exists
2 file:
3 path: "{{ stage_dir }}/etc"
4 state: directory
5
6- name: Check which projects have a config folder
7 stat:
8 path: "/etc/{{ item.value.short_name }}"
9 with_dict: "{{ zuul.projects }}"
10 register: project_configs
11
12- name: Copy configuration files
13 command: cp -pRL {{ item.stat.path }} {{ stage_dir }}/etc/{{ item.item.value.short_name }}
14 when: item.stat.exists
15 with_items: "{{ project_configs.results }}"
16
17- name: Check if openstack has a config folder
18 stat:
19 path: "/etc/openstack"
20 register: openstack_configs
21
22- name: Copy configuration files
23 command: cp -pRL /etc/openstack {{ stage_dir }}/etc/
24 when: openstack_configs.stat.exists