mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-10 04:25:20 +02:00
Moved blocks to include_tasks to raise performance. Deploy was really slow
This commit is contained in:
19
roles/web-app-port-ui/tasks/02_validate.yml
Normal file
19
roles/web-app-port-ui/tasks/02_validate.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- name: Assert that each web-app- or web-svc- port-ui-desktop app uses the correct domain suffix
|
||||
assert:
|
||||
that:
|
||||
- >
|
||||
(
|
||||
not (item.value.features['port-ui-desktop'] | default(false) | bool)
|
||||
)
|
||||
or (domains | get_domain(item.key)).endswith(domains | get_domain('web-app-port-ui'))
|
||||
fail_msg: >
|
||||
Application {{ item.key }}
|
||||
has domain {{ domains | get_domain(item.key) }}
|
||||
but it does not end with {{ domains | get_domain('web-app-port-ui') }}!
|
||||
loop: "{{ applications
|
||||
| dict2items
|
||||
| selectattr('key', 'match', '^(web-app-|web-svc-)')
|
||||
| selectattr('key', 'in', group_names)
|
||||
| list }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
Reference in New Issue
Block a user