summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2018-12-19 11:41:46 +0000
committerMichal Ptacek <m.ptacek@partner.samsung.com>2018-12-19 11:41:46 +0000
commitda1ff1f8c2a5e5f8e92a8934b87b87b76c98cbf2 (patch)
treea9f2a6b859bef0b22f09c4c17a909724d3236e6f
parentd21977bd82508b90c8bfda24111ac4a693256e70 (diff)
Adding ansible vncserver role
Local VNCserver is expected to be good tool for accessing onap component GUI APIs howerver its not crucial part of the installation. Change-Id: If8105d5ab564f30d9da002a5bf2b1f0f3c017f78 Issue-ID: OOM-1551 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
-rw-r--r--ansible/roles/vncserver/tasks/main.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible/roles/vncserver/tasks/main.yml b/ansible/roles/vncserver/tasks/main.yml
new file mode 100644
index 00000000..56ae707b
--- /dev/null
+++ b/ansible/roles/vncserver/tasks/main.yml
@@ -0,0 +1,19 @@
+---
+- name: Load VNC server image
+ docker_image:
+ name: consol/centos-icewm-vnc:latest
+ load_path: '{{ app_data_path }}/offline_data/docker_images_infra/consol_centos_icewm_vnc_latest.tar'
+ state: present
+ timeout: 120
+
+- name: Run VNC server
+ docker_container:
+ name: vnc_server
+ image: consol/centos-icewm-vnc
+ state: started
+ restart_policy: unless-stopped
+ ports:
+ - "5901:5901"
+ - "6901:6901"
+ env:
+ VNC_PW: "{{ vnc_passwd }}"