Add more output
This commit is contained in:
parent
4079cd4be4
commit
a9727f839b
1 changed files with 14 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue