From 4079cd4be45ed48e99bece6c93a1d153a6ecf109 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 17 Oct 2022 12:14:57 +0300 Subject: [PATCH] fix if which find two puppet --- tasks/configure.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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