Using ansible playbook to edit config file inside running docker container -
i have searched , found few modules/plugins docker_image , docker_service handle docker images , containers. want edit configuration file(any application specific/service ) inside running docker container using ansible playbook. there module available ?
if have python
executable inside container , run ansible on same host docker daemon, can use docker
connection plugin run tasks inside containers. test this:
ansible -c docker -i 'mycontainer,' -m copy -a 'content=hello dest=/tmp/world'
Comments
Post a Comment