mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
Renamed web-app-port-ui to web-app-desktop
This commit is contained in:
19
roles/web-app-desktop/tasks/02_validate.yml
Normal file
19
roles/web-app-desktop/tasks/02_validate.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- name: Assert that each web-app- or web-svc- desktop app uses the correct domain suffix
|
||||
assert:
|
||||
that:
|
||||
- >
|
||||
(
|
||||
not (item.value.features['desktop'] | default(false) | bool)
|
||||
)
|
||||
or (domains | get_domain(item.key)).endswith(domains | get_domain('web-app-desktop'))
|
||||
fail_msg: >
|
||||
Application {{ item.key }}
|
||||
has domain {{ domains | get_domain(item.key) }}
|
||||
but it does not end with {{ domains | get_domain('web-app-desktop') }}!
|
||||
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