-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path06-test-operator.yml
More file actions
29 lines (25 loc) · 954 Bytes
/
06-test-operator.yml
File metadata and controls
29 lines (25 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- name: Run tests using test-operator
hosts: localhost
gather_facts: true
strategy: linear
pre_tasks:
- name: Load stack output vars from file
ansible.builtin.include_vars:
file: "{{ hotstack_work_dir | default(playbook_dir) }}/{{ stack_name }}-outputs.yaml"
name: stack_outputs
- name: Add controller-0 to the Ansible inventory
ansible.builtin.add_host: "{{ stack_outputs.controller_ansible_host }}"
- name: Load dataplane SSH keys vars
ansible.builtin.include_vars:
file: "{{ hotstack_work_dir | default(playbook_dir) }}/dataplane_ssh_keys_vars.yaml"
- name: Load automation vars
ansible.builtin.include_vars:
file: "{{ test_operator_automation_vars_file }}"
name: automation
roles:
- role: hotloop
delegate_to: controller-0
vars:
work_dir: "{{ scenario_dir }}/{{ scenario }}/test-operator"
automation: "{{ automation }}"