Compare commits
2 Commits
6b218b02f9
...
ec9c51b34a
Author | SHA1 | Date | |
---|---|---|---|
ec9c51b34a | |||
9b64cf8a00 |
@ -73,12 +73,15 @@
|
|||||||
hour: 3
|
hour: 3
|
||||||
job: 'find /data/syncthing/data/ -type f -iname "*:Zone.Identifier" -delete'
|
job: 'find /data/syncthing/data/ -type f -iname "*:Zone.Identifier" -delete'
|
||||||
tags: [ cron ]
|
tags: [ cron ]
|
||||||
- name: assure sanitize cronjob
|
- name: assure filename sanitize cronjobs
|
||||||
cron:
|
cron:
|
||||||
name: sanitize name=orig.png
|
name: "sanitize {{ item }}"
|
||||||
minute: 0
|
minute: 0
|
||||||
hour: 4
|
hour: 4
|
||||||
job: 'find /data/syncthing/data/ -type f -iname "*?name=orig.png" | while read line; do mv "$line" "${line%?name=orig.png}"; done'
|
job: 'find /data/syncthing/data/ -type f -iname "*{{ item }}" | while read line; do mv "$line" "${line%{{ item }}}"; done'
|
||||||
|
with_items:
|
||||||
|
- ?name=orig.png
|
||||||
|
- ?name=orig.jpeg
|
||||||
tags: [ cron ]
|
tags: [ cron ]
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
define host {
|
define host {
|
||||||
name ansible-linux-server
|
name ansible-linux-server
|
||||||
check_period 24x7
|
check_period 24x7
|
||||||
check_interval 5
|
check_interval 10
|
||||||
retry_interval 1
|
retry_interval 1
|
||||||
max_check_attempts 10
|
max_check_attempts 10
|
||||||
check_command check-host-alive
|
check_command check-host-alive
|
||||||
@ -19,7 +19,7 @@ define service {
|
|||||||
use generic-service
|
use generic-service
|
||||||
name ansible-generic-service
|
name ansible-generic-service
|
||||||
max_check_attempts 5
|
max_check_attempts 5
|
||||||
check_interval 5
|
check_interval 10
|
||||||
retry_interval 1
|
retry_interval 1
|
||||||
register 0
|
register 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user