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

pull/107/head
David Wilson 7 years ago
parent 9dbbd2e2dd
commit a0756755bc

@ -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'"
Loading…
Cancel
Save