mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
20 lines
740 B
YAML
20 lines
740 B
YAML
- 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 }}"
|