diff options
Diffstat (limited to 'ansible/roles/vncserver/tasks')
-rw-r--r-- | ansible/roles/vncserver/tasks/main.yml | 19 |
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 }}" |