rice/lab/roles/setup/tests/test.yml

20 lines
385 B
YAML
Raw Normal View History

---
2024-02-12 01:09:10 +00:00
- hosts: lab
tasks:
- name: Normal Echo
command: echo Quick test of an echo
register: normal_echo
- debug:
var: normal_echo.stdout
- name: Checking Sudo access
become: yes
command: echo One more test with sudo this time
register: sudo_echo
- debug:
var: sudo_echo.stdout
- debug:
var: sudo_echo.stderr