summaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-29 19:53:37 +0300
committerLars Wirzenius <liw@liw.fi>2022-04-29 19:53:37 +0300
commit835ce8fb2476f6f5fd34bbd259079855a0d6b30d (patch)
tree7b639adbb9c2c355548a9f862d1a832c50882180 /ansible
parentd583fc61a437894fe5f4b97d4c94be855fc897af (diff)
downloadansibleness-835ce8fb2476f6f5fd34bbd259079855a0d6b30d.tar.gz
feat: use my vmdb2-build base image in debian-ansible-dev, vmadm-dev
Sponsored-by: author
Diffstat (limited to 'ansible')
-rw-r--r--ansible/debian-ansible-dev.yml21
-rw-r--r--ansible/vmadm-dev.yml6
2 files changed, 15 insertions, 12 deletions
diff --git a/ansible/debian-ansible-dev.yml b/ansible/debian-ansible-dev.yml
index e45b8f7..c51d879 100644
--- a/ansible/debian-ansible-dev.yml
+++ b/ansible/debian-ansible-dev.yml
@@ -31,16 +31,17 @@
groups:
- kvm
- libvirt
- - shell: |
- sudo install -d -o liw -g liw /home/liw/tmp
- cd /home/liw/tmp
- if [ ! -e debian-10-openstack-amd64.qcow2 ]
- then
- wget https://cloud.debian.org/images/cloud/OpenStack/current-10/debian-10-openstack-amd64.qcow2
- chown -R liw:liw /home/liw/tmp
- fi
- args:
- warn: no
+ - file:
+ state: directory
+ path: /home/liw/tmp
+ owner: liw
+ group: liw
+ - copy:
+ src: /home/liw/tmp/base-images/debian-10-openstack-amd64.qcow2
+ dest: /home/liw/tmp/debian-10-openstack-amd64.qcow2
+ owner: liw
+ group: liw
+ mode: 0644
vars:
ansible_python_interpreter: python3
diff --git a/ansible/vmadm-dev.yml b/ansible/vmadm-dev.yml
index b253532..161e912 100644
--- a/ansible/vmadm-dev.yml
+++ b/ansible/vmadm-dev.yml
@@ -28,9 +28,11 @@
- texlive-fonts-recommended
- texlive-latex-base
- texlive-latex-recommended
- - get_url:
- url: https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2
+ - copy:
+ src: /home/liw/tmp/base-images/debian-10-openstack-amd64.qcow2
dest: /home/liw/debian.qcow2
+ owner: liw
+ group: liw
mode: 0644
- virt_net:
name: default