infra/deprecated/playbooks/beta/test-web-user.yml

19 lines
369 B
YAML
Raw Normal View History

2021-12-13 06:04:11 +00:00
# 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