ansible: add become test case

This commit is contained in:
David Wilson 2018-02-15 00:27:05 +05:45
parent ed09076bdd
commit 8204dc69e7
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
- name: "This command should run as the SSH user"
command: whoami
- name: "This command should run as root"
become: true
command: whoami

View File

@ -0,0 +1,6 @@
---
- hosts: all
roles:
- whoami