Skip to content

Instantly share code, notes, and snippets.

@github-somerandomguy-xyz
Created April 9, 2020 20:13
Show Gist options
  • Save github-somerandomguy-xyz/53d4f68fbbc4958fa79b17f62b0c5f58 to your computer and use it in GitHub Desktop.
Save github-somerandomguy-xyz/53d4f68fbbc4958fa79b17f62b0c5f58 to your computer and use it in GitHub Desktop.
build & start storage pool
- block:
- name: build the storage pool.
virt_pool:
command: build
name: "{{ image_pool_name }}"
uri: "{{ libvirt_uri }}"
- name: start the storage pool.
virt_pool:
command: create
name: "{{ image_pool_name }}"
uri: "{{ libvirt_uri }}"
when: ansible_libvirt_pools["{{image_pool_name}}"].state != "active"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment