Skip to content

Commit

Permalink
Watchtower: Reduce default poll interval, convert to var
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Dec 16, 2023
1 parent ea84025 commit 8b385f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/watchtower/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

watchtower_instances: ["watchtower"]

################################
# Settings
################################

watchtower_poll_interval: 43200

################################
# Paths
################################
Expand Down Expand Up @@ -40,7 +46,7 @@ watchtower_docker_image: "{{ lookup('vars', watchtower_name + '_docker_image_rep
watchtower_docker_envs_default:
TZ: "{{ tz }}"
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_POLL_INTERVAL: "86400"
WATCHTOWER_POLL_INTERVAL: "{{ watchtower_poll_interval }}"
watchtower_docker_envs_custom: {}
watchtower_docker_envs: "{{ lookup('vars', watchtower_name + '_docker_envs_default', default=watchtower_docker_envs_default)
| combine(lookup('vars', watchtower_name + '_docker_envs_custom', default=watchtower_docker_envs_custom)) }}"
Expand Down

0 comments on commit 8b385f4

Please sign in to comment.