summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/configure-targethosts.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-09-15 16:28:42 +0100
committerMarkos Chandras <mchandras@suse.de>2017-09-15 21:39:35 +0100
commitcd680ff04b2fb6afe3155fe9be02049f4464508a (patch)
treed770f22a545e6d0fd1d1fe2b0ea90d9aacd3831c /xci/playbooks/configure-targethosts.yml
parente2ea3110c72884b495721101bb7cdf49c8bf4e52 (diff)
xci: playbooks: Add task for loading distribution variables
vars_files doesn't support loading files with variables in their names. As such we add a new task to include these files before running any of the roles. This fixes warnings like this: Info: Starting provisining VM nodes using openstack/bifrost ------------------------------------------------------------------------- No config file found; using defaults skipping vars_file '../var/{{ ansible_os_family }}.yml' due to an undefined variable skipping vars_file '../var/{{ ansible_os_family }}.yml' due to an undefined variable skipping vars_file '../var/{{ ansible_os_family }}.yml' due to an undefined variable skipping vars_file '../var/{{ ansible_os_family }}.yml' due to an undefined variable skipping vars_file '../var/{{ ansible_os_family }}.yml' due to an undefined variable skipping vars_file '../var/{{ ansible_os_family }}.yml' due to an undefined variable Change-Id: I0a49e2ed8d811bb40a99612462752f8691133e0f Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/configure-targethosts.yml')
-rw-r--r--xci/playbooks/configure-targethosts.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/xci/playbooks/configure-targethosts.yml b/xci/playbooks/configure-targethosts.yml
index 88da1312..0b3bf348 100644
--- a/xci/playbooks/configure-targethosts.yml
+++ b/xci/playbooks/configure-targethosts.yml
@@ -10,8 +10,11 @@
- hosts: controller
remote_user: root
vars_files:
- - ../var/{{ ansible_os_family }}.yml
- ../var/flavor-vars.yml
+ pre_tasks:
+ - name: Load distribution variables
+ include_vars:
+ file: ../var/{{ ansible_os_family }}.yml
roles:
- role: configure-network
# we need to force sync time with ntp or the nodes will be out of sync timewise
@@ -20,8 +23,11 @@
- hosts: compute
remote_user: root
vars_files:
- - ../var/{{ ansible_os_family }}.yml
- ../var/flavor-vars.yml
+ pre_tasks:
+ - name: Load distribution variables
+ include_vars:
+ file: ../var/{{ ansible_os_family }}.yml
roles:
- role: configure-network
# we need to force sync time with ntp or the nodes will be out of sync timewise