Skip to content

da-vinci-studio/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible in container for install and deploy tasks

windows:

deploy.ps1 dev|stage|prod|..
install.ps1 inventory playbook

docker run --rm -it -v ${PWD}/ansible:/ansible/playbooks -v  ${env:USERPROFILE}/.ssh:/root/ssh bkosciow/ansible {dev|stage|prod}
docker run --rm -it -v ${PWD}/ansible:/ansible/playbooks -v  ${env:USERPROFILE}/.ssh:/root/ssh bkosciow/ansible install {inventory} {playbook}

linux:

deploy.sh dev|stage|prod|..
install.sh inventory playbook

docker run --rm -it -v ${pwd}/ansible:/ansible/playbooks -v  ~/.ssh:/root/ssh bkosciow/ansible {dev|stage|prod}
docker run --rm -it -v ${pwd}/ansible:/ansible/playbooks -v  ~/.ssh:/root/ssh bkosciow/ansible install {inventory} {playbook}

Dir .ssh is not mapped directly to home because of windows permission problems. It is mapped in different folder and then copied with correct permissions

About

deploy with ansble in docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published