From e77eceaa2ce3fb91ddaae8e29b71f958c8b7fab3 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 10 Jul 2021 22:10:24 +0200 Subject: [PATCH] modify gandi DNS install --- tasks/main.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ff890d2..666357a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,15 +1,17 @@ --- # tasks file for gandi-dyn-dns - - name: Install gandi-automatic-dns - aur: name=gandi-automatic-dns state=present + aur: + name: gandi-automatic-dns + state: present become_user: aur_builder + become: true - name: create cron for dyndns cron: - 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 \ No newline at end of file + 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