-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.yml
46 lines (39 loc) · 1.34 KB
/
run.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
- name: "Create inventory with target host(s)"
hosts: localhost
connection: local
gather_facts: no
tasks:
- name: Use inventory Helper to setup ansible inventory
ansible.builtin.include_role:
name: profiler-inventory-helper
- name: Run webcams profiler
hosts: all
gather_facts: yes
become: yes
tasks:
- name: Assert input parameter
ansible.builtin.assert:
that:
- (resource_id is defined) and (resource_id | length > 0)
- name: Set aas_id
ansible.builtin.set_fact:
aas_id: "{{ resource_id }}"
- name: Set aas_repository
ansible.builtin.set_fact:
aas_repository_host: "aas-repository"
aas_repository_port: 8081
when: (aas_repository_host is not defined) or (aas_repository_host | length == 0)
- name: Set aas_registry
ansible.builtin.set_fact:
aas_registry_host: "aas-registry"
aas_registry_port: 8082
when: (aas_registry_host is not defined) or (aas_registry_host | length == 0)
- name: Set submodel_registry
ansible.builtin.set_fact:
submodel_registry_host: "submodel-registry"
submodel_registry_port: 8083
when: (submodel_registry_host is not defined) or (submodel_registry_host | length == 0)
- name: "Include webcam"
ansible.builtin.include_role:
name: "webcam"