diff --git a/ansible.cfg b/ansible.cfg index b40b464..07bb4c6 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,4 @@ [defaults] nocows=True localhost_warning=False +gathering=smart \ No newline at end of file diff --git a/play.yml b/play.yml index f856e26..ce916f7 100644 --- a/play.yml +++ b/play.yml @@ -2,7 +2,6 @@ - name: create cloudflare dns records hosts: localhost connection: local - gather_facts: smart vars: domains: - sampledomain.local @@ -10,8 +9,8 @@ - name: import cloudflare creds include_vars: file: "~/.cloudflare.yml" - - name: "create-records: include role" + - name: "manage-records: include role" include_role: - name: create-records + name: manage-records vars_from: "{{item}}" with_items: "{{domains}}" diff --git a/roles/create-records/tasks/main.yml b/roles/manage-records/tasks/main.yml similarity index 100% rename from roles/create-records/tasks/main.yml rename to roles/manage-records/tasks/main.yml diff --git a/roles/create-records/vars/sample.yml b/roles/manage-records/vars/sample.yml similarity index 100% rename from roles/create-records/vars/sample.yml rename to roles/manage-records/vars/sample.yml