
This is due to a missing package and some poor static vars which I remove here.. EROROR messages: ERROR! the role 'haproxy' was not found in /home/stack/tripleo-validations/playbooks/roles:/home/stack/.ansible/roles:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:55:33.205590Z/runner_di_bi277gxt/55:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:55:33.205590Z/runner_di_bi277gxt/33.205590Z/roles:/home/stack/tobiko/roles:/usr/share/ansible/roles:/usr/share/ceph-ansible/roles:/etc/ansible/roles:/usr/share/validations-common/roles:/home/stack/tripleo-validations/playbooks The error appears to be in '/home/stack/tripleo-validations/playbooks/haproxy.yaml': line 17, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: roles: - haproxy ^ here Change-Id: Ib4879a848da7022723566b3ecb4422640d8a8268
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
---
|
|
|
|
- name: "clean target directory '{{ deploy_dir }}'"
|
|
file:
|
|
path: "{{ deploy_dir | realpath }}"
|
|
state: absent
|
|
when:
|
|
- deploy_clean | bool
|
|
|
|
|
|
- name: "ensure target directory exists: '{{ deploy_dir }}'"
|
|
file:
|
|
path: "{{ deploy_dir | realpath }}"
|
|
state: directory
|
|
register: create_dest_dir
|
|
|
|
|
|
- name: "copy '{{ deploy_src_dir }}' to '{{ deploy_dir }}'"
|
|
synchronize:
|
|
src: "{{ deploy_src_dir | realpath }}/."
|
|
dest: "{{ deploy_dir | realpath }}"
|
|
use_ssh_args: yes
|
|
recursive: yes
|
|
rsync_opts:
|
|
- '--exclude-from={{ deploy_src_dir | realpath }}/.gitignore'
|
|
register: copy_src_dir
|
|
when:
|
|
- (deploy_src_dir | length) > 0
|
|
|
|
|
|
- when: copy_src_dir is skipped
|
|
block:
|
|
|
|
- name: "override deploy_git_version and deploy_src_dir because deploy_git_refspec is '{{ deploy_git_refspec }}'"
|
|
set_fact:
|
|
deploy_git_version: 'FETCH_HEAD'
|
|
when: "(deploy_git_refspec | length) > 0"
|
|
|
|
- name: "checkout files from '{{ deploy_git_repo }}[{{ deploy_git_refspec | default(deploy_git_version) }}]' to '{{ deploy_dir }}'"
|
|
git:
|
|
dest: '{{ deploy_dir }}'
|
|
repo: '{{ deploy_git_repo }}'
|
|
refspec: '{{ deploy_git_refspec or omit }}'
|
|
version: '{{ deploy_git_version or omit }}'
|
|
remote: '{{ deploy_git_remote or omit }}'
|
|
force: yes
|
|
register: checkout_files
|
|
when:
|
|
- (deploy_git_version | length) > 0
|
|
|
|
|
|
- name: "get last change details for '{{ deploy_dir }}'" # noqa 303
|
|
command:
|
|
chdir: "{{ deploy_dir }}"
|
|
cmd: git log -n 1
|
|
changed_when: no
|
|
register: get_git_log
|
|
|
|
|
|
- name: "show last change details"
|
|
debug: var=get_git_log.stdout_lines
|
|
|
|
#we install validations-common here since it's
|
|
#packaged by rhel-osp
|
|
- name: install validations-common
|
|
ignore_errors: yes
|
|
become: true
|
|
package:
|
|
name: validations-common
|
|
state: present
|