Add more output

This commit is contained in:
Antonio J. Delgado 2022-10-17 12:27:52 +03:00
parent 4079cd4be4
commit a9727f839b

View file

@ -43,8 +43,11 @@
creates: /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem creates: /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem
- name: Find puppet command - name: Find puppet command
shell: which puppet | true shell: which puppet | awk '{print($1)}' | true
register: which_puppet register: which_puppet
- name: Show puppet command
debug:
msg: "Puppet command: '{{ which_puppet.stdout }}'"
- name: Find puppet command with where - name: Find puppet command with where
shell: "whereis puppet | awk 'BEGIN {FS=\": \"} {print($2)}'" shell: "whereis puppet | awk 'BEGIN {FS=\": \"} {print($2)}'"
@ -123,10 +126,20 @@
state: started state: started
enabled: true enabled: true
- name: Ensure r10k configuration folder exists
file:
path: /etc/puppetlabs/r10k
state: directory
owner: puppet
group: puppet
- name: Ensure r10k is configured - name: Ensure r10k is configured
copy: copy:
dest: /etc/puppetlabs/r10k/r10k.yaml dest: /etc/puppetlabs/r10k/r10k.yaml
content: "{{ r10k_config | to_nice_yaml }}" content: "{{ r10k_config | to_nice_yaml }}"
owner: puppet
group: puppet
backup: true
- name: Deploy environment - name: Deploy environment
shell: r10k deploy environment --config /etc/puppetlabs/r10k/r10k.yaml shell: r10k deploy environment --config /etc/puppetlabs/r10k/r10k.yaml