summaryrefslogtreecommitdiffstats
path: root/ansible/roles/vncserver/tasks/main.yml
blob: 287b6ce1968e3a657010480489cf3cedffa42c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: Load VNC server image
  docker_image:
    name: "{{ vnc_server_image }}"
    load_path: "{{ infra_images_path }}/{{ vnc_server_image_tar }}"
    state: present
    source: load
    timeout: 120

- name: Start VNC server container
  docker_container:
    name: vnc-server
    image: "{{ vnc_server_image }}"
    state: started
    restart_policy: unless-stopped
    ports:
      - "5901:5901"
      - "6901:6901"
    env:
      VNC_PW: "{{ vnc_passwd }}"
    container_default_behavior: compatibility