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'" -