From 29a7f96b7f6112cf68d7f1a5cd68b093ff4243df Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Mon, 30 Jan 2017 12:25:56 +0200 Subject: [PATCH] Refresh Ansible facts after installing packages this will help when running ironic install against a clean remote node, as for example, in testing mode virtual interfaces will be created only after libvirt installation and will not be part of ansible facts until facts are refreshed. Change-Id: Ied18741dafe53bd32064548b88d5f05f86b76410 --- playbooks/roles/bifrost-ironic-install/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/roles/bifrost-ironic-install/tasks/main.yml b/playbooks/roles/bifrost-ironic-install/tasks/main.yml index f728310c8..cd5aa845a 100644 --- a/playbooks/roles/bifrost-ironic-install/tasks/main.yml +++ b/playbooks/roles/bifrost-ironic-install/tasks/main.yml @@ -55,6 +55,10 @@ include: install.yml when: skip_package_install | bool != True +# NOTE(pas-ha) needed to e.g. pick up new interfaces after libvirt install +- name: "Refresh facts" + setup: + - name: "Bootstrap Ironic" include: bootstrap.yml when: skip_bootstrap | bool != True