update ansible images and script to use docker container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user