--- - name: "🧹 Purge everything from Cloudflare cache for domain {{ domain }}" no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}" uri_retry: url: "https://api.cloudflare.com/client/v4/zones/{{ cf_zone_id }}/purge_cache" method: POST headers: Authorization: "Bearer {{ lookup('api', 'cloudflare.api_token') }}" Content-Type: "application/json" body: purge_everything: true body_format: json return_content: true # rationale: async; no register at all, and the purge is idempotent on the next deploy async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}" poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"