summaryrefslogtreecommitdiffstats
path: root/roles/common/pre_tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/pre_tasks')
-rw-r--r--roles/common/pre_tasks/pre_tasks.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/common/pre_tasks/pre_tasks.yml b/roles/common/pre_tasks/pre_tasks.yml
index 1ba1ea55d..71a989b30 100644
--- a/roles/common/pre_tasks/pre_tasks.yml
+++ b/roles/common/pre_tasks/pre_tasks.yml
@@ -15,6 +15,11 @@
env_id: "{{ env_id | default(default_env_id) }}"
delegate_to: localhost
+- name: Set Dynamic Inventory Filters
+ shell: >
+ export OS_INV_FILTER_KEY=clusterid && OS_INV_FILTER_VALUE={{ env_id }}
+ delegate_to: localhost
+
- name: Updating DNS domain to include env_id (if not empty)
set_fact:
full_dns_domain: "{{ (env_id|trim == '') | ternary(dns_domain, env_id + '.' + dns_domain) }}"