Commit 1f432abd authored by David Wilson's avatar David Wilson

Remove whoami.yml, it's now done by delegate_to.yml.

parent 860a6355
---
- 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'"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment