From 6dcb4fb1c486188d6f65d6a610e5e4542702ede6 Mon Sep 17 00:00:00 2001 From: ikerbs Date: Tue, 2 Nov 2021 17:16:47 +0300 Subject: [PATCH] add update hosts role --- defaults/main.yaml | 2 +- tasks/main.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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