diff options
Diffstat (limited to 'xci/playbooks/roles/create-nodes/tasks/main.yml')
-rw-r--r-- | xci/playbooks/roles/create-nodes/tasks/main.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xci/playbooks/roles/create-nodes/tasks/main.yml b/xci/playbooks/roles/create-nodes/tasks/main.yml index 0e51b411..8e54fcd1 100644 --- a/xci/playbooks/roles/create-nodes/tasks/main.yml +++ b/xci/playbooks/roles/create-nodes/tasks/main.yml @@ -8,6 +8,8 @@ - name: "Install required packages" package: name: "{{ required_packages }}" + update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}" + state: present - include_tasks: prepare_libvirt.yml with_items: "{{ libvirt_networks }}" |