From a9727f839bec843ba61e00d1a132adf5db1d4aca Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 17 Oct 2022 12:27:52 +0300 Subject: [PATCH] Add more output --- tasks/configure.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 26e511e..e533577 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -43,8 +43,11 @@ creates: /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem - name: Find puppet command - shell: which puppet | true + shell: which puppet | awk '{print($1)}' | true register: which_puppet +- name: Show puppet command + debug: + msg: "Puppet command: '{{ which_puppet.stdout }}'" - name: Find puppet command with where shell: "whereis puppet | awk 'BEGIN {FS=\": \"} {print($2)}'" @@ -123,10 +126,20 @@ state: started enabled: true +- name: Ensure r10k configuration folder exists + file: + path: /etc/puppetlabs/r10k + state: directory + owner: puppet + group: puppet + - name: Ensure r10k is configured copy: dest: /etc/puppetlabs/r10k/r10k.yaml content: "{{ r10k_config | to_nice_yaml }}" + owner: puppet + group: puppet + backup: true - name: Deploy environment shell: r10k deploy environment --config /etc/puppetlabs/r10k/r10k.yaml \ No newline at end of file