gandi-dyn-dns/tasks/main.yml

18 lines
780 B
YAML
Raw Permalink Normal View History

2019-04-14 09:44:05 +00:00
---
# tasks file for gandi-dyn-dns
- name: Install gandi-automatic-dns
2021-07-10 20:10:24 +00:00
aur:
name: gandi-automatic-dns
state: present
2019-04-14 09:44:05 +00:00
become_user: aur_builder
2021-07-10 20:10:24 +00:00
become: true
2019-04-14 09:44:05 +00:00
- name: create cron for dyndns
cron:
2021-07-10 20:10:24 +00:00
job: "gad -5 -a {{Gandi_API_KEYS}} -d {{ Gandi_Domain }} -r {{Gandi_Record}} &> /dev/null"
user: root # not required. The specific user whose crontab should be modified.
minute: 0,15,30,45 # not required. Minute when the job should run ( 0-59, *, */2, etc )
name: "live DNS record gandi" # not required. Description of a crontab entry or, if env is set, the name of environment variable. Required if state=absent. Note that if name is not set and state=present, then a new crontab entry will always be created, regardless of existing ones.
become: yes