diff --git a/defaults/main.yaml b/defaults/main.yaml index 7f1def1..f096d2b 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1 +1 @@ -pin_hosts: "no" +pin_hosts: no diff --git a/tasks/main.yaml b/tasks/main.yaml index 63a5fc0..eb26512 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -8,7 +8,7 @@ state: present when: - hostvars[item].ansible_host is defined - - hostvars[item].pin_hosts is defined + - pin_hosts with_items: "{{ groups.all }}" tags: - hosts