summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/copy.yaml
blob: 3f0d8c52f27965abab4a14c0b531a29b31dd1a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- name: buildah copy
  command: buildah copy nginxc-2 /tmp/buildah/bud/Dockerfile

- name: check buildah copy
  command: ls {{mount.stdout}}/Dockerfile

- name: buildah copy to destination
  command: buildah copy nginxc-2 /tmp/buildah/bud/Dockerfile /home

- name: check buildah copy to
  command: ls {{mount.stdout}}/home/Dockerfile

- name: buildah copy URL
  command: buildah copy nginxc-2 https://github.com/projectatomic/buildah/raw/master/README.md

- name: check buildah copy URL
  command: ls {{mount.stdout}}/README.md

- name: buildah copy URL to destination
  command: buildah copy nginxc-2 https://github.com/projectatomic/buildah/raw/master/README.md /home

- name: check buildah copy URL to destination
  command: ls {{mount.stdout}}/home/README.md

- name: Download buildah README.md
  get_url:
    url: https://github.com/projectatomic/buildah/raw/master/README.md
    dest: /tmp/buildah/

- name: buildah copy dir
  command: buildah copy nginxc-2 /tmp/buildah

- name: check buildah copy dir
  command: ls {{mount.stdout}}/README.md

- name: buildah copy dir to destination
  command: buildah copy nginxc-2 /tmp /home

- name: check buildah copy dir to destination
  command: ls {{mount.stdout}}/home/buildah/README.md