include credentials only once

This commit is contained in:
Josh Lay 2021-12-18 21:44:35 -06:00
parent 2def875433
commit e538a528d1
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -1,9 +1,5 @@
---
- name: import cloudflare creds
include_vars:
file: "~/.cloudflare.yml"
- name: "create records ({{domain}})"
cloudflare_dns:
zone: "{{ domain }}"