This role uses akamai credentials to submit either ARL or CPCODE purges through the Akamai API.
- https://api.ccu.akamai.com/ccu/v2/docs/index.html
- https://developer.akamai.com/api/purge/ccu/overview.html
- https://developer.akamai.com/api
- http://docs.ansible.com/flowdock_module.html
ansible-playbook akamai.yml -i inventory/local --tags akamai_status
ansible-playbook akamai.yml -i inventory/local --tags akamai_purge_arl -vv --extra-vars arl=http://www.example.com/graphics/picture.gif,http://www.example.com/documents/brochure.pdf
ansible-playbook akamai.yml -i inventory/local --tags akamai_purge_cpcode --extra-vars cpcode=number,number1,number2
--extra-vars 'cpcode=number,anotherNumber notify_team=release_team'
ansible-playbook akamai.yml -i inventory/local --tags akamai_query -vv --extra-vars arl=https://www.example.com/favicon.ico
Example provided by akamai tech
curl -i -H "Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key" https://www.example.com/favicon.ico