File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ RUN apk upgrade \
4242 git \
4343 openssh-client \
4444 sshpass \
45+ tzdata \
4546 --no-cache
46-
4747COPY requirements.txt /var/run/requirements.txt
4848
4949# 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
22
33COPY --chown=ansible:ansible ./*.yml /ansible-playbook/
44
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
16162 . Run this docker image with mounted inventory.yml and id_rsa key from you local or CI
17173 . Profit 🎩
1818
19+ ## Build wrapped playbook
20+
21+ ```
22+ docker build -t docker.io/devincan/ansible-playbook-example:dev .
23+ ```
24+
1925## Run wrapped playbook
2026
2127```
2228$ docker run -it \
2329-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
2430-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 \
2632-v -e global_test_variable=test
2733```
2834
@@ -51,6 +57,6 @@ $ docker run -it \
5157-v $PWD:/ansible-playbook \
5258-v $HOME/.ssh/id_rsa:/home/ansible/.ssh/id_rsa \
5359-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 \
5561-v -e global_test_variable=test
5662```
You can’t perform that action at this time.
0 commit comments