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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -