Files
EX407-Ansible-Automation/playbooks/at-scheduling-task.yml
2020-03-26 17:32:53 +01:00

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