From f8738f1c5251b93b5d4b9c7a6afa2ee100b85ff2 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 11 Mar 2018 03:11:57 +0545 Subject: [PATCH] issue #122: helper to print environment --- examples/playbook/issue_122.yml | 6 ++++++ examples/playbook/scripts/print_env.sh | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 examples/playbook/issue_122.yml create mode 100644 examples/playbook/scripts/print_env.sh diff --git a/examples/playbook/issue_122.yml b/examples/playbook/issue_122.yml new file mode 100644 index 00000000..4bba6ad6 --- /dev/null +++ b/examples/playbook/issue_122.yml @@ -0,0 +1,6 @@ + +- hosts: all + tasks: + - script: scripts/print_env.sh + register: env + - debug: msg={{env}} diff --git a/examples/playbook/scripts/print_env.sh b/examples/playbook/scripts/print_env.sh new file mode 100644 index 00000000..c03c9936 --- /dev/null +++ b/examples/playbook/scripts/print_env.sh @@ -0,0 +1,2 @@ +#!/bin/bash +set