check that target is not the same as source

This commit is contained in:
Antonio J. Delgado 2022-10-24 13:42:18 +03:00
parent 829489b2de
commit 22cbabf6ce

View file

@ -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"