Kostiantyn Kalynovskyi 24e9812d56 Make storage playbooks idempotent
Also this disables libvirt networking templates, untill we have a
working template requirement.

Change-Id: Id3098b3dc5eec15f41c30d5b656dd3bc9a632e42
2021-04-14 04:00:33 +00:00

40 lines
988 B
YAML

##########################################
# configure storage #
##########################################
- name: create storage
include_tasks: create-storage.yaml
loop: "{{ libvirtStorage }}"
##########################################
# configure networks #
##########################################
# - name: create network
# include_tasks: create-network.yaml
# loop: "{{ libvirtNetworks }}"
##########################################
# configure domains #
##########################################
- name: allocate domain cores
core_allocation:
nodes: "{{ nodes }}"
flavors: "{{ flavors }}"
exclude_cpu: "{{ configuration.cpuExclude }}"
register: node_core_map
when: nodes
- name: debug print node_core_map
debug:
msg: "node_core_map = {{ node_core_map }}"
- name: define domain outer loop
include_tasks: create-domain.yaml
loop: "{{ nodes }}"
loop_control:
loop_var: node