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>
diff --git a/ansible/roles/vncserver/tasks/main.yml b/ansible/roles/vncserver/tasks/main.yml
new file mode 100644
index 0000000..56ae707
--- /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 }}"