blob: bdba4f65634a9fdd1fafa646402b7b60bd6381d2 (
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
|
---
# file: roles/csit_shim_image/tasks/main.yaml
- name: Create a directory if it does not exist
file:
path: "{{ item }}"
state: "directory"
mode: 0755
with_items:
- "/opt/csit-shim/"
- "/opt/csit-shim/files"
tags: csit-shim-image
- name: Copy Build Items
copy:
src: "{{ item }}"
dest: "/opt/csit-shim/{{ item }}"
owner: "root"
group: "root"
mode: 0655
with_items:
- "Dockerfile"
- "files/badkeypub"
- "files/sshconfig"
- "files/wrapdocker"
tags: csit-shim-image
- name: Build CSIT shim Docker Image
shell: "docker build -t csit_shim-ubuntu1804:local ."
args:
chdir: "/opt/csit-shim"
tags: csit-shim-image
|