mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-14 16:07:20 +00:00
Add CRON schedule to route53-ddns service
Signed-off-by: Webster Mudge <wmudge@gmail.com>
This commit is contained in:
parent
16caf4f27f
commit
ea91f72744
3 changed files with 11 additions and 0 deletions
|
@ -32,3 +32,9 @@ To set up Route53 to work with the service, please review the [Prerequisites](ht
|
|||
| route53_hosted_zone_id | Route53 hosted zone ID | mandatory |
|
||||
| route53_ttl | Time-to-live for the DNS entry | |
|
||||
| route53_host | Wildcard domain to update | |
|
||||
|
||||
### Application
|
||||
|
||||
| Parameter | Description | Status |
|
||||
|------------------|-----------------------------------------------------|-----------|
|
||||
| route53_schedule | [CRON](https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc#hdr-CRON_Expression_Format) schedule for checking and updating DNS entry | |
|
||||
|
|
|
@ -18,5 +18,8 @@ route53_host: "*.{{ ansible_nas_domain }}"
|
|||
# The Time-To-Live for the DNS entry
|
||||
route53_ttl: 600
|
||||
|
||||
# The CRON string schedule for checking and updating
|
||||
route53_schedule: "*/30 * * * *"
|
||||
|
||||
# Container
|
||||
route53_memory: 512MB
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
name: route53-ddns
|
||||
image: crazymax/ddns-route53:latest
|
||||
pull: true
|
||||
env:
|
||||
SCHEDULE: "{{ route53_schedule | string }}"
|
||||
volumes:
|
||||
- "{{ route53_data_directory }}/ddns-route53.yml:/etc/ddns-route53/ddns-route53.yml"
|
||||
restart_policy: unless-stopped
|
||||
|
|
Loading…
Reference in a new issue