blob: b1aaed9e4d049c244a59e292fc7493c8b6ba3467 [file] [log] [blame]
Michal Ptacekda1ff1f2018-12-19 11:41:46 +00001---
2- name: Load VNC server image
3 docker_image:
Tomáš Levoraa0ad5c12019-03-28 17:45:55 +01004 name: "{{ vnc_server_image }}"
5 load_path: "{{ infra_images_path }}/{{ vnc_server_image_tar }}"
Michal Ptacekda1ff1f2018-12-19 11:41:46 +00006 state: present
7 timeout: 120
8
Tomáš Levoraa0ad5c12019-03-28 17:45:55 +01009- name: Start VNC server container
Michal Ptacekda1ff1f2018-12-19 11:41:46 +000010 docker_container:
Tomáš Levoraa0ad5c12019-03-28 17:45:55 +010011 name: vnc-server
12 image: "{{ vnc_server_image }}"
Michal Ptacekda1ff1f2018-12-19 11:41:46 +000013 state: started
14 restart_policy: unless-stopped
15 ports:
16 - "5901:5901"
17 - "6901:6901"
18 env:
19 VNC_PW: "{{ vnc_passwd }}"