fix if which find two puppet

This commit is contained in:
Antonio J. Delgado 2022-10-17 12:14:57 +03:00
parent c775d96ef1
commit 4079cd4be4

View file

@ -24,7 +24,7 @@
notify: 'Restart puppetserver'
- name: Find puppetserver command
shell: which puppetserver | true
shell: which puppetserver | awk '{print($1)}' | true
register: which_puppetserver
- name: Find puppetserver command with where
@ -127,3 +127,6 @@
copy:
dest: /etc/puppetlabs/r10k/r10k.yaml
content: "{{ r10k_config | to_nice_yaml }}"
- name: Deploy environment
shell: r10k deploy environment --config /etc/puppetlabs/r10k/r10k.yaml