Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions climate-nginx-base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
src: cloudflare-update-ip-ranges.sh
dest: /usr/local/bin/cloudflare-update-ip-ranges.sh
mode: '0755'
when: cloudflare_proxy
when: cloudflare_proxy | bool
tags: climate-nginx-base

# Run Cloudflare IP address retrieval script if proxying through cloudflare
- name: Run Cloudflare IP address retrieval script
become: true
ansible.builtin.shell:
cmd: /usr/local/bin/cloudflare-update-ip-ranges.sh
when: cloudflare_proxy
when: cloudflare_proxy | bool
tags: climate-nginx-base

# If proxying through cloudflare, set crontab to run the cloudflare-update-ip-ranges.sh script once a week
Expand All @@ -90,7 +90,7 @@
day: "*"
month: "*"
weekday: "1"
when: cloudflare_proxy
when: cloudflare_proxy | bool
tags: climate-nginx-base

# Remove blocklist file if nginx_blocklist is empty
Expand Down