|
@ -22,7 +22,7 @@ echo "[service]" > /project/courses/$YAML/inventory.yml |
|
|
echo $ip4 >> /project/courses/$YAML/inventory.yml |
|
|
echo $ip4 >> /project/courses/$YAML/inventory.yml |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ansible-playbook -u docker -i inventory.yml $YAML -f 5 --ask-pass --ask-become-pass |
|
|
ansible-playbook -u docker -i inventory.yml $YAML.yml -f 5 --ask-pass --ask-become-pass |
|
|
# 1st make sudo without password |
|
|
# 1st make sudo without password |
|
|
# run with keys |
|
|
# run with keys |
|
|
#ansible-playbook -u docker -i inventory.yml $YAML -f 5 --private-key=/home/docker/.ssh/id_rsa |
|
|
#ansible-playbook -u docker -i inventory.yml $YAML.yml -f 5 --private-key=/home/docker/.ssh/id_rsa |
|
|