aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2018-03-13 00:09:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-13 00:09:23 +0000
commitbbd3b027bd132568c258f02e36d9cc78c4629dfd (patch)
treeacbd1a058284d1859eda90f55a4a5924f3fb1c8c /ansible
parent8eefd8ac17fb25c6bcfa219e64a1ad7a81961c40 (diff)
parent440760a84ce6f256ab56246eaaa204e6553ec387 (diff)
Merge "Add support for VNC to VMs created by ansible"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/infra_create_vms/tasks/configure_vm.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/infra_create_vms/tasks/configure_vm.yml b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
index 7419fd565..c20a0b175 100644
--- a/ansible/roles/infra_create_vms/tasks/configure_vm.yml
+++ b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
@@ -222,6 +222,10 @@
- console:
type: pty
tty: '/dev/pts/14'
+ - graphics:
+ type: vnc
+ port: '-1'
+ autoport: 'yes'
pretty_print: yes
- name: Add new children nodes to "disk" node
@@ -241,6 +245,16 @@
name: virtio-disk0
pretty_print: yes
+- name: Add new children nodes to "graphics" node
+ xml:
+ path: "{{ xml_file }}"
+ xpath: /domain/devices/graphics
+ add_children:
+ - listen:
+ type: address
+ address: 0.0.0.0
+ pretty_print: yes
+
- name: Add new children nodes to "devices" node
xml:
path: "{{ xml_file }}"