summaryrefslogtreecommitdiffstats
path: root/tests/roles/cli/tasks/config.yaml
blob: d1e88bd4bead5d6c9e807718275e45a820bdb41f (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
42
43
44
45
46
47
48
---
- name: buildah config annotation
  command: buildah config --annotation annotation=test-annotation nginxc

- name: buildah config arch
  command: buildah config --arch x86_64 nginxc

- name: buildah config author
  command: buildah config --author "Guohua Ouyang" nginxc

- name: buildah config cmd
  command: buildah config --cmd "nginx -g 'daemon off;'" nginxc

- name: buildah config createdby
  command: buildah config --created-by "manualcreated" nginxc

- name: buildah config label
  command: buildah config --label label=test-label nginxc

- name: buildah config port
  command: buildah config --port 8001 nginxc

- name: buildah config user
  command: buildah config --user www-data nginxc

- name: buildah config workingdir 
  command: buildah config --workingdir /opt nginxc

- name: buildah config env
  command: buildah config --env foo=bar nginxc

- name: buildah config os
  command: buildah config --os unix nginxc

- name: verify the container after config
  shell: buildah inspect nginxc | grep '{{ item }}'
  with_items:
    - test-annotation
    - x86_64
    - test-label
    - Ouyang
    - daemon off
    - manualcreated
    - 8001
    - www-data
    - opt
    - foo=bar
    - unix