diff --git a/play.yml b/play.yml index 89e1f37..3805d05 100644 --- a/play.yml +++ b/play.yml @@ -7,6 +7,9 @@ domains: - sampledomain.local tasks: + - name: import cloudflare creds + include_vars: + file: "~/.cloudflare.yml" - name: "enforce state for {{item}}" include_role: name: create-records diff --git a/roles/create-records/tasks/main.yml b/roles/create-records/tasks/main.yml index dbb97db..417598f 100644 --- a/roles/create-records/tasks/main.yml +++ b/roles/create-records/tasks/main.yml @@ -1,9 +1,5 @@ --- -- name: import cloudflare creds - include_vars: - file: "~/.cloudflare.yml" - - name: "create records ({{domain}})" cloudflare_dns: zone: "{{ domain }}"