32 lines
791 B
YAML
32 lines
791 B
YAML
---
|
|
- name: fetch images
|
|
get_url:
|
|
dest: "{{ libvirt.images }}/{{ item.dest }}"
|
|
group: root
|
|
owner: root
|
|
mode: u=rw,g=r,o=r
|
|
url: "{{ item.url }}"
|
|
checksum: "{{ item.checksum }}"
|
|
with_items:
|
|
- dest: fedora-34-x64.qcow2
|
|
checksum: sha1:fc08ad81a893b8253ec3bf6e25273cbb4fc8eafb
|
|
url: https://download.fedoraproject.org/pub/fedora/linux/releases/34/Cloud/x86_64/images/Fedora-Cloud-Base-34-1.2.x86_64.qcow2
|
|
|
|
- name: virt_net "docker" present
|
|
virt_net:
|
|
autostart: yes
|
|
name: docker
|
|
state: present
|
|
xml: '{{ lookup("template", "network/docker.xml.j2") }}'
|
|
|
|
- name: virt_net "docker" autostart
|
|
virt_net:
|
|
name: docker
|
|
autostart: yes
|
|
|
|
- name: virt_net "docker" active
|
|
virt_net:
|
|
name: docker
|
|
state: active
|
|
autostart: yes
|