Ansible show output of script module -


i having ansible invoke bash script:

- name: configure consul healthchecks , services   script: "/home/centos/configure-consul-services.sh"   register: output - debug: var=output.stdout_lines 

is possible have ansible show output of bash script when script module ran? googling suggests adding debug on variable should work, stdout=[]

my example bash script (not permitted paste actual script) starts with:

#!/usr/bin/env bash  set -e set -x  echo "hello world" 

im running via hashicorp packer, on ansible 2.3 building on centos 7 ami on amazon.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -