summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-vncserver/tasks/main.yml
blob: bb5a43ef819d1e3ada3dc3169d842e4916e85877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- name: "Create needed dirs for vncserver role"
  file:
    path: "{{ item }}"
    state: directory
    mode: "u+rw,g+wx,o+rwx"
    recurse: true
  loop:
    - "{{ infra_images_path }}"

- name: Download and archive vncserver docker image for the vncserver role to use
  delegate_to: localhost
  docker_image:
    name: "{{ vnc_server_image }}"
    state: present
    archive_path: /tmp/vncserver.tar
    timeout: 240

- name: Copy vnc server image to node
  copy:
    src: /tmp/vncserver.tar
    dest: "{{ infra_images_path }}/{{ vnc_server_image_tar }}"