Example of running an Ansible playbook from docker's container.
cd docs/examples/ansible
./run.sh localhost:8001
or
- Prepare the payload:
rm -rf target && mkdir target
cp -R playbook ansible.cfg inventory.ini concord.yml target/
- Archive the payload:
cd target && zip -r payload.zip ./*
- Send the payload to the server:
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process