We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e4b1be commit 792f3f2Copy full SHA for 792f3f2
apps/ansible/init.sh
@@ -0,0 +1,8 @@
1
+#!/bin/sh
2
+
3
+set -e
4
5
+cp -r /dockerized/host/home/.ssh /root/.ssh
6
+chmod -R go-rwx /root/.ssh
7
8
+"$@"
docker-compose.yml
@@ -11,10 +11,15 @@ services:
11
ALPINE_PACKAGES: "tree"
12
ansible: &ansible
13
image: "willhallonline/ansible:${ANSIBLE_VERSION}-${ANSIBLE_BASE}"
14
- entrypoint: [ "ansible" ]
+ entrypoint: [ "/init.sh", "ansible" ]
15
+ volumes:
16
+ - "${HOME}/.ssh:/dockerized/host/home/.ssh"
17
+ - ./apps/ansible/init.sh:/init.sh
18
+ environment:
19
+ - ANSIBLE_CONFIG=ansible.cfg
20
ansible-playbook:
21
<<: *ansible
- entrypoint: [ "ansible-playbook" ]
22
+ entrypoint: [ "/init.sh", "ansible-playbook" ]
23
ab:
24
<<: *alpine
25
image: "ab"
0 commit comments