advertine.cloudflare-purge
Cloudflare Purge
Ansible role for purging files from caches on CloudFlare servers
Requirements
- httplib2 (ansible uri module)
Role Variables
cloudflare_purge_zone- a CloudFlare zone IDcloudflare_purge_email- a CloudFlare authorization emailcloudflare_purge_key- a CloudFlare authorization API keycloudflare_purge_from_file- a path to file containing list of urls to purge in YAML formatcloudflare_purge_urls- alternatively provide direct list of urls to purge
Example Playbook
Providing external yml file with urls:
- hosts: example
vars:
cloudflare_purge_email: "YOUR EMAIL"
cloudflare_purge_key: "YOUR KEY"
roles:
- role: advertine.cloudflare-purge
cloudflare_purge_zone: "YOUR ZONE ID"
cloudflare_purge_from_file: "/path/to/urls.yml"
Providing direct list of urls:
- hosts: example
vars:
cloudflare_purge_email: "YOUR EMAIL"
cloudflare_purge_key: "YOUR KEY"
roles:
- role: advertine.cloudflare-purge
cloudflare_purge_zone: "YOUR ZONE ID"
cloudflare_purge_urls:
- "https://example.com/path/to/purged/file"
License
BSD
Author Information
Rafał Michalski
Install
ansible-galaxy install advertine.cloudflare-purgeLicense
Unknown
Downloads
901
Owner
