Files
tripleo-quickstart-extras/roles/validate-simple/tasks/main.yml
Sorin Sbarnea 8b2e5653e4 lint: fixed ansible-lint 301 rule
Change-Id: I8ce7e11cd6027b53f1112c5880a5891c778db9d4
2020-01-05 19:37:09 +00:00

39 lines
1.1 KiB
YAML

---
- name: Old THT workaround, check for pingtest template
stat:
path: "{{ validate_template_path }}/{{ validate_template }}"
register: template_check
- name: Old THT workaround, copy over the pingtest template
copy:
src: "tenantvm_floatingip.yaml"
dest: "{{ working_dir }}/tenantvm_floatingip.yaml"
when:
- validate_template == "tenantvm_floatingip.yaml"
- not template_check.stat.exists
- name: Old THT workaround, override the template path
set_fact:
validate_template_path: "{{ working_dir }}"
when:
- validate_template == "tenantvm_floatingip.yaml"
- not template_check.stat.exists
- name: Create overcloud validate script
template:
src: "{{ validate_script }}"
dest: "{{ working_dir }}/overcloud-validate.sh"
mode: 0744
- name: Copy wait_for script
copy:
src: wait_for
dest: "{{ working_dir }}/wait_for"
mode: 0755
- name: Validate the overcloud
shell: >
set -o pipefail &&
{{ working_dir }}/overcloud-validate.sh 2>&1 {{ timestamper_cmd }} > {{ validate_log }}
changed_when: true