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
Post a Comment