-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbtest.yml
executable file
·8 lines (8 loc) · 1.14 KB
/
dbtest.yml
1
2
3
4
5
6
7
8
---
- hosts: all
tasks:
- debug:
var: "{{ inventory_hostname in groups['database'] | default([]) or (not groups['database'] | default([]) and ( inventory_hostname in groups['automationhub'] | default ([]) or inventory_hostname in groups ['tower'] | default([]) )) }}"
# var: "{{ inventory_hostname in groups['database'] | default([]) or (not groups['database'] | default([]) and ( inventory_hostname in groups['tower'] | default([]) or (inventory_hostname in groups['automationhub'] | default([]) and (groups['tower','automationhub'] is undefined or not groups['tower','automationhub'] | default([]) | length)))) }}"
# var: "{{ inventory_hostname in groups['database'] | default([]) or (inventory_hostname in groups['tower'] | default([]) or (inventory_hostname in groups['tower'] | default([]) or (inventory_hostname in groups['automationhub'] | default([]) and (groups['tower','automationhub'] is undefined or not groups['tower','automationhub'] | default([]) | length))) }}"
# var: "{{ inventory_hostname in groups['database'] | default([]) or (_do_run_db_install | default(false) | bool and not groups['database'] | default([]) | length) }}"