From 22cbabf6cecce6a5851637e36cb582d0479f3372 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 24 Oct 2022 13:42:18 +0300 Subject: [PATCH] check that target is not the same as source --- tasks/configure.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index c418289..44dc356 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -86,6 +86,8 @@ state: link dest: /usr/local/bin/puppet src: "{{ puppet_agent_cmd }}" + when: + - puppet_agent_cmd != '/usr/local/bin/puppet' - name: Obtain puppet configuration directory shell: "/usr/local/bin/puppet config print confdir"