From c95911eed40eb145a0ba32c3b0214d4e3ed02baf Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 4 Jul 2023 15:37:37 -0400 Subject: [PATCH] fix: use shell instead of command when checking for CLI tools Signed-off-by: Devin Buhl --- template/tasks/verify_cli.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/tasks/verify_cli.yaml b/template/tasks/verify_cli.yaml index a081767a..d34df51e 100644 --- a/template/tasks/verify_cli.yaml +++ b/template/tasks/verify_cli.yaml @@ -1,6 +1,7 @@ --- - name: Check for required CLI tools - ansible.builtin.command: "command -v {{ item }}" + ansible.builtin.shell: | + command -v {{ item }} >/dev/null 2>&1 loop: [age, flux, git, pip3, sops, task] changed_when: false check_mode: false