Why >>> eval "$(docker-machine env default)" in a ansible playbook script return "No such file or directory" -
i try execute docker-compose create containers on docker-machine (driver virtualbox) ansible. so, write ansible-playbook script that. user (all/nopasswd) added suddoers group.
activate machine before.
shell: eval "$(docker-machine env default)" shell: docker-compose -d
it didnt activate remote machine. stays on host.
ok: [192.168.0.12] => { "msg": "" }
so, docker-compose create container on local machine instead of remote machine.
thank in advance help.
olivier
my bad, each task in isolated shell, write shell multiline resole problem.
shell: | eval $(sudo docker-machine env default) docker-compose -d
Comments
Post a Comment