diff --git a/tasks/configure.yml b/tasks/configure.yml index 036a58c..26e511e 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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 @@ -126,4 +126,7 @@ - name: Ensure r10k is configured copy: dest: /etc/puppetlabs/r10k/r10k.yaml - content: "{{ r10k_config | to_nice_yaml }}" \ No newline at end of file + content: "{{ r10k_config | to_nice_yaml }}" + +- name: Deploy environment + shell: r10k deploy environment --config /etc/puppetlabs/r10k/r10k.yaml \ No newline at end of file