forked from evolix/ansible-roles
etc-git: cron jobs to monitor uncommited changes
This commit is contained in:
parent
37ea8d292e
commit
37c4898eed
|
@ -88,3 +88,24 @@
|
|||
force: no
|
||||
tags:
|
||||
- etc-git
|
||||
|
||||
- name: regularly check for uncommited changes (if no one is connected)
|
||||
cron:
|
||||
name: git-status-except-connected
|
||||
special_time: "hourly"
|
||||
user: root
|
||||
job: "who > /dev/null || git --git-dir=/etc/.git --work-tree=/etc status --short"
|
||||
state: present
|
||||
tags:
|
||||
- etc-git
|
||||
|
||||
- name: daily check for uncommited changes
|
||||
cron:
|
||||
name: git-status
|
||||
user: root
|
||||
hour: 21
|
||||
minute: 21
|
||||
job: "git --git-dir=/etc/.git --work-tree=/etc status --short"
|
||||
state: present
|
||||
tags:
|
||||
- etc-git
|
||||
|
|
Loading…
Reference in a new issue