cron and archive modules completed

This commit is contained in:
Ilgar Naghiyev
2020-03-25 16:05:01 +01:00
parent 745e61d24f
commit dc74121cb0
3 changed files with 119 additions and 2 deletions

12
playbooks/cron-tasks.yml Normal file
View File

@@ -0,0 +1,12 @@
---
- hosts: all
user: ansible
become: yes
gather_facts: no
tasks:
- name: Ensure a job that runs at 5am and 5pm exists.
cron:
name: "Job 0001"
minute: "0"
hour: "5,17"
job: "df -h >> /tmp/diskspace"