.dockerfunc: remove ansible

This commit is contained in:
Frieder Schlesier 2023-01-09 19:46:05 +01:00
parent cf9dc39933
commit 19bd891d79
1 changed files with 13 additions and 13 deletions

View File

@ -71,20 +71,20 @@ android-studio() {
#exit 0;
}
ansible() {
local args=$@
local cur_dir=$(pwd)
local targetmount=$(basename $cur_dir)
# ansible() {
# local args=$@
# local cur_dir=$(pwd)
# local targetmount=$(basename $cur_dir)
docker run -it \
--name ansible_$targetmount \
-v ${cur_dir}:/src/$targetmount \
-w /src/$targetmount \
-v $HOME/.ssh/:/tmp/.ssh:ro \
-v /etc/hosts:/etc/hosts:ro \
${DOCKER_REPO_PREFIX}/ansible:alpine \
bash -c "$args"
}
# docker run -it \
# --name ansible_$targetmount \
# -v ${cur_dir}:/src/$targetmount \
# -w /src/$targetmount \
# -v $HOME/.ssh/:/tmp/.ssh:ro \
# -v /etc/hosts:/etc/hosts:ro \
# ${DOCKER_REPO_PREFIX}/ansible:alpine \
# bash -c "$args"
# }
ant() {
local args=$@