From 1f432abd2defb535b7fedb18aaedf9e20723d30e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 27 Feb 2018 15:56:00 +0545 Subject: [PATCH] Remove whoami.yml, it's now done by delegate_to.yml. --- examples/playbook/whoami.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 examples/playbook/whoami.yml diff --git a/examples/playbook/whoami.yml b/examples/playbook/whoami.yml deleted file mode 100644 index 1495e044..00000000 --- a/examples/playbook/whoami.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- - -- hosts: all - tasks: - - name: "This command should run as the SSH user" - command: whoami - register: whoami - - - name: "Verify non-become user is correct" - assert: - that: "whoami.stdout == '{{ansible_user_id}}'" - - - name: "This command should run as root" - become: true - command: whoami - register: whoami - - - name: "Verify become user is correct" - assert: - that: "whoami.stdout == 'root'" -