11 lines
239 B
YAML
11 lines
239 B
YAML
---
|
|
- hosts: all
|
|
user: ansible
|
|
become: yes
|
|
gather_facts: no
|
|
tasks:
|
|
- name: schedule a command to execute in 20 minutes as the ansible user
|
|
at:
|
|
command: df -h >tmp/diskspace
|
|
count: 20
|
|
units: minutes |