* Test playbook working as expected
This commit is contained in:
parent
7efec03023
commit
8f029e989f
18
playbooks/beta/test-web-user.yml
Normal file
18
playbooks/beta/test-web-user.yml
Normal file
@ -0,0 +1,18 @@
|
||||
# This playbooks basically just ensures that the web user account is behaving
|
||||
# correctly and is installed in the correct places
|
||||
---
|
||||
- hosts: web
|
||||
user: web
|
||||
tasks:
|
||||
- name: Echo something
|
||||
shell: echo Hello
|
||||
register: hi
|
||||
|
||||
- debug: var=hi.stdout
|
||||
|
||||
- name: Who am I
|
||||
shell: whoami
|
||||
register: whoami
|
||||
|
||||
- debug: var=whoami.stdout_lines
|
||||
|
Loading…
Reference in New Issue
Block a user