summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorPetr OspalĂ˝ <p.ospaly@partner.samsung.com>2018-12-19 14:13:18 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-19 14:13:18 +0000
commit1e1def01678e9eb25e5476b0122824ff7dacfe7e (patch)
tree32382c224575da49b6e333f12c9169d359bf27a7 /ansible
parente944afd40770dc1013965bd817511d2353d69e4c (diff)
parentda1ff1f8c2a5e5f8e92a8934b87b87b76c98cbf2 (diff)
Merge "Adding ansible vncserver role"
Diffstat (limited to 'ansible')
-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 }}"