mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implmented dev mode für cloudflare
This commit is contained in:
12
roles/srv-proxy-6-6-domain/tasks/cloudflare/01_cleanup.yml
Normal file
12
roles/srv-proxy-6-6-domain/tasks/cloudflare/01_cleanup.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: "Purge everything from Cloudflare cache for domain {{ domain }}"
|
||||
ansible.builtin.uri:
|
||||
url: "https://api.cloudflare.com/client/v4/zones/{{ cf_zone_id }}/purge_cache"
|
||||
method: POST
|
||||
headers:
|
||||
Authorization: "Bearer {{ certbot_dns_api_token }}"
|
||||
Content-Type: "application/json"
|
||||
body:
|
||||
purge_everything: true
|
||||
body_format: json
|
||||
return_content: yes
|
||||
register: cf_purge
|
Reference in New Issue
Block a user