Merge "Cron module wants strings"
This commit is contained in:
commit
158f190fcd
@ -156,7 +156,7 @@
|
|||||||
job: "docker exec -t gitea-docker_gitea-web_1 find /data/git/repositories/ -maxdepth 2 -name *.git -type d -execdir git --git-dir={} gc --quiet \\;"
|
job: "docker exec -t gitea-docker_gitea-web_1 find /data/git/repositories/ -maxdepth 2 -name *.git -type d -execdir git --git-dir={} gc --quiet \\;"
|
||||||
minute: '{{ 59 | random(seed=inventory_hostname) }}'
|
minute: '{{ 59 | random(seed=inventory_hostname) }}'
|
||||||
hour: '{{ 23 | random(seed=inventory_hostname) }}'
|
hour: '{{ 23 | random(seed=inventory_hostname) }}'
|
||||||
weekday: 0
|
weekday: '0'
|
||||||
- name: Create db backup dest
|
- name: Create db backup dest
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -97,8 +97,8 @@
|
|||||||
name: pack-git-refs
|
name: pack-git-refs
|
||||||
state: present
|
state: present
|
||||||
job: 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;'
|
job: 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;'
|
||||||
minute: 7
|
minute: '7'
|
||||||
hour: 4
|
hour: '4'
|
||||||
|
|
||||||
- name: Install logging config
|
- name: Install logging config
|
||||||
copy:
|
copy:
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
name: pack-git-refs
|
name: pack-git-refs
|
||||||
state: present
|
state: present
|
||||||
job: 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;'
|
job: 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;'
|
||||||
minute: 7
|
minute: '7'
|
||||||
hour: 4
|
hour: '4'
|
||||||
|
|
||||||
- name: Install logging config
|
- name: Install logging config
|
||||||
copy:
|
copy:
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
name: 'zuul-scheduler-status-prune-{{ tenant }}'
|
name: 'zuul-scheduler-status-prune-{{ tenant }}'
|
||||||
state: present
|
state: present
|
||||||
user: root
|
user: root
|
||||||
minute: 0
|
minute: '0'
|
||||||
job: |
|
job: |
|
||||||
flock -n /var/run/{{ tenant }}_status_prune.lock ls -dt -1 /var/lib/zuul/backup/{{ tenant }}_* |sed -e '1,120d' |xargs rm -f
|
flock -n /var/run/{{ tenant }}_status_prune.lock ls -dt -1 /var/lib/zuul/backup/{{ tenant }}_* |sed -e '1,120d' |xargs rm -f
|
||||||
|
Loading…
Reference in New Issue
Block a user