File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ RUN apk upgrade \
42
42
git \
43
43
openssh-client \
44
44
sshpass \
45
+ tzdata \
45
46
--no-cache
46
-
47
47
COPY requirements.txt /var/run/requirements.txt
48
48
49
49
# RUN pip3 install --upgrade pip && \
Original file line number Diff line number Diff line change 1
- FROM docker.io/devincan/ansible-playbook-base:v0.1
1
+ FROM docker.io/devincan/ansible-playbook-base:v0.4
2
2
3
3
COPY --chown=ansible:ansible ./*.yml /ansible-playbook/
4
4
Original file line number Diff line number Diff line change @@ -16,13 +16,19 @@ Just go ahead and try [run](#run-wrapped-playbook) this example docker image aga
16
16
2 . Run this docker image with mounted inventory.yml and id_rsa key from you local or CI
17
17
3 . Profit 🎩
18
18
19
+ ## Build wrapped playbook
20
+
21
+ ```
22
+ docker build -t docker.io/devincan/ansible-playbook-example:dev .
23
+ ```
24
+
19
25
## Run wrapped playbook
20
26
21
27
```
22
28
$ docker run -it \
23
29
-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
24
30
-v /path/to/inventory.yml:/ansible/inventory.yml \
25
- docker.io/devincan/ansible-playbook-example:v0.1 \
31
+ docker.io/devincan/ansible-playbook-example:dev \
26
32
-v -e global_test_variable=test
27
33
```
28
34
@@ -51,6 +57,6 @@ $ docker run -it \
51
57
-v $PWD:/ansible-playbook \
52
58
-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
53
59
-v /path/to/inventory.yml:/ansible/inventory.yml \
54
- docker.io/devincan/ansible-playbook-example: v0 .1 \
60
+ docker.io/devincan/ansible-playbook-example: dev \
55
61
-v -e global_test_variable=test
56
62
```
You can’t perform that action at this time.
0 commit comments