first commit
This commit is contained in:
13
files/ansible-playbooks/uptime.yml
Normal file
13
files/ansible-playbooks/uptime.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Run uptime on a host
|
||||
hosts: all
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
- name: Check uptime
|
||||
ansible.builtin.raw: uptime
|
||||
register: uptime_out
|
||||
|
||||
- name: Show result
|
||||
ansible.builtin.debug:
|
||||
var: uptime_out.stdout
|
||||
Reference in New Issue
Block a user