aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks/04-disk-image.yaml
blob: 884a8db65bb623b921641c8acc19f3a8263a4e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- hosts: virl
  remote_user: virl
  tasks:
  - name: Create server image directory
    file: path=/home/virl/virl-server-image state=directory mode=0755
  - name: Copy server image
    copy: src=files/virl-server-image/server.qcow2 dest=/home/virl/virl-server-image/server.qcow2 mode=644
# TODO: Need to make this conditional, and find a good source for the image.
  - name: Import server image into glance
    shell: virl_uwm_client image-create --subtype server --version java-nested --release 14.04.03 --image-on-server /home/virl/virl-server-image/server.qcow2