From 00150973c2d3a96eec925493b3830b08a6a64437 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 11 Nov 2019 14:17:35 -0500 Subject: [PATCH] users: delegate task to localhost TIL `connection: local` != `delegate_to: localhost` See https://github.com/ansible/ansible/issues/16724#issuecomment-259989010 Signed-off-by: David Galloway --- roles/users/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 400bfa5..edf879c 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -4,6 +4,7 @@ register: keys_repo_head become: false when: keys_repo is defined + delegate_to: localhost connection: local run_once: true retries: 5 -- 2.39.5