Testing OpenStack upgrades
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
tobiko/infrared_plugin/roles/tobiko-ir-init/tasks/main.yaml

52 lines
1.3 KiB

---
- name: "ensure Tobiko directory exists"
file:
path: '{{ tobiko_src_dir | realpath }}'
state: directory
register: create_tobiko_dir
- name: "get Tobiko files"
include_role: name=tobiko-ir-deploy
vars:
deploy_dir: '{{ tobiko_src_dir | realpath }}'
deploy_git_repo: '{{ tobiko_git_repo }}'
deploy_git_version: "{{ tobiko_git_version | default('HEAD') }}"
deploy_git_refspec: "{{ tobiko_git_refspec | default('') }}"
deploy_git_remote: '{{ tobiko_git_remote | default(omit) }}'
when: create_tobiko_dir is changed
- name: "find roles in directory '{{ tobiko_src_dir | realpath }}/roles'"
find:
paths:
- "{{ tobiko_src_dir | realpath }}/roles"
patterns:
- "tobiko-*"
file_type: directory
register: find_tobiko_roles
- name: "add links to Tobiko roles to IR plugin"
file:
src: '{{ item | realpath }}'
dest: '{{ playbook_dir }}/roles/{{ item | basename }}'
state: link
force: yes
loop: "{{ find_tobiko_roles.files | map(attribute='path') | list }}"
- name: "select test host from inventory"
set_fact:
test_host: '{{ item }}'
when:
- test_host is not defined
- item in hostvars
loop:
- tester-0
- tester
- undercloud-0
- undercloud
- tempest
- primary