From 0e6228b751a0ef7943f710ccfb7a5755a20193a1 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Wed, 20 Apr 2022 23:22:01 -0500 Subject: [PATCH] fix fact gathering, rename role --- ansible.cfg | 1 + play.yml | 5 ++--- roles/{create-records => manage-records}/tasks/main.yml | 0 roles/{create-records => manage-records}/vars/sample.yml | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename roles/{create-records => manage-records}/tasks/main.yml (100%) rename roles/{create-records => manage-records}/vars/sample.yml (100%) 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