summaryrefslogtreecommitdiffstats
path: root/ansible/roles/vncserver/tasks/main.yml
blob: 56ae707b5947fe06ed8d4dae5b46cb7e400d32a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 }}"