ansible: add become test case
parent
3a96389d08
commit
2efb790a2f
@ -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