ansible: add become test case
This commit is contained in:
parent
ed09076bdd
commit
8204dc69e7
|
@ -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
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
|
||||
- hosts: all
|
||||
roles:
|
||||
- whoami
|
Loading…
Reference in New Issue