completed at module lesson
This commit is contained in:
11
playbooks/at-scheduling-task.yml
Normal file
11
playbooks/at-scheduling-task.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user