tripleo-quickstart-extras/roles/create-reproducer-script/tasks/main.yml
Gabriele Cerami 1d1f808528 Move reproducer README file
when trying to use reproducer generator stand standalone, README file is taken
from collect logs.
This change moves it to the create reproducer role, and make it a standard
file, not a template, since it does not use any variable

Change-Id: Ie21f47264680b468ce51a3e1f8305670889ccb41
2019-07-31 20:17:28 +00:00

56 lines
1.7 KiB
YAML

---
- name: Check if collect directory exists
stat:
path: "{{ artcl_collect_dir }}"
register: collect_dir
- name: Create collect directory
file:
path: "{{ artcl_collect_dir }}"
state: directory
when: not collect_dir.stat.exists
- name: Create the reproducer-quickstart directory
file:
path: "{{ artcl_collect_dir }}/{{ old_reproducer_dir }}"
state: directory
- name: Create the reproducer-quickstart/scripts directory
file:
path: "{{ artcl_collect_dir }}/{{ old_reproducer_dir }}/scripts"
state: directory
- name: Copy the generate toci templates and files
copy:
src: "/home/{{ undercloud_user }}/src/opendev.org/openstack/tripleo-ci/{{ item }}"
dest: "{{ artcl_collect_dir }}/{{ old_reproducer_dir }}/{{ item }}"
mode: 0755
with_items:
- "toci_gate_test.sh"
- "toci_quickstart.sh"
- "scripts/common_vars.bash"
- "scripts/oooq_common_functions.sh"
- name: Check if featureset-override exists
stat:
path: "/home/{{ undercloud_user }}/src/opendev.org/openstack/tripleo-ci/featureset-override.yaml"
register: featureset_override_file
- name: Add the featureset-override if it exists
copy:
src: "/home/{{ undercloud_user }}/src/opendev.org/openstack/tripleo-ci/featureset-override.yaml"
dest: "{{ artcl_collect_dir }}/{{ old_reproducer_dir }}/featureset-override.yaml"
mode: 0755
when: featureset_override_file.stat.exists
- name: Create the reproducer file from template
template:
src: "{{ reproducer_quickstart_script }}"
dest: "{{ artcl_collect_dir }}/{{ old_reproducer_dir }}/reproducer-quickstart.sh"
mode: 0755
- name: Copy reproducer script documentation
copy:
src: README-reproducer-quickstart.html
dest: "{{ reproducer_quickstart_readme_file }}"