From f03b8f902eae9e190e99c26d3e9f4872e3b68616 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 16 Nov 2023 10:49:10 -0500 Subject: [PATCH] initial project commit --- nolog.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nolog.yml diff --git a/nolog.yml b/nolog.yml new file mode 100644 index 0000000..8e910a3 --- /dev/null +++ b/nolog.yml @@ -0,0 +1,26 @@ +--- +- name: Test Nolog + hosts: all + become: false + gather_facts: false + + vars: + __my_password: 09fjgn34t87j3t8 + + + tasks: + - name: Echo password via command + ansible.builtin.command: "/bin/echo 'hello world - your password is {{ __my_password }}'" + + - name: What about via debug... + ansible.builtin.debug: + msg: "your password is {{ __my_password }}" + + - name: Echo password via command (no_log) + ansible.builtin.command: "/bin/echo 'hello world - your password is {{ __my_password }}'" + no_log: True + + - name: What about via debug... (no_log) + ansible.builtin.debug: + msg: "your password is {{ __my_password }}" + no_log: True \ No newline at end of file