update ansible images and script to use docker container

This commit is contained in:
2019-02-17 17:26:25 -05:00
parent 84b936c50c
commit 6584460e20
6 changed files with 21 additions and 10 deletions

View File

@@ -1,5 +1,10 @@
#!/bin/bash
# run ansible playbook to update name servers
docker run --rm -i\
-v ~/.ssh:/home/user/.ssh \
-u 1000 \
-v ${PWD}:/opt/project \
-w /opt/project \
xaicorp/ansible:2.7 ${PLAYBOOK}.yml -i inventory.conf -u ansible
ansible-playbook -vvv ${PLAYBOOK}.yml -i inventory.conf -u ansible