From 8f029e989f66d79c61fc99b9de1344ca46296a23 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 12 Dec 2021 22:04:11 -0800 Subject: [PATCH] * Test playbook working as expected --- playbooks/beta/test-web-user.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 playbooks/beta/test-web-user.yml diff --git a/playbooks/beta/test-web-user.yml b/playbooks/beta/test-web-user.yml new file mode 100644 index 0000000..93d1fd7 --- /dev/null +++ b/playbooks/beta/test-web-user.yml @@ -0,0 +1,18 @@ +# This playbooks basically just ensures that the web user account is behaving +# correctly and is installed in the correct places +--- +- hosts: web + user: web + tasks: + - name: Echo something + shell: echo Hello + register: hi + + - debug: var=hi.stdout + + - name: Who am I + shell: whoami + register: whoami + + - debug: var=whoami.stdout_lines +