Cron module wants strings

We're getting ansible warnings about converting these to strings
for us.

Change-Id: Iba70b5e71ded01ca2e11276fb2f007c9d7aa1866
This commit is contained in:
Monty Taylor 2020-04-25 10:37:56 -05:00
parent 1febd9a0f2
commit 267d7e728d
4 changed files with 6 additions and 6 deletions

View File

@ -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 \\;"
minute: '{{ 59 | random(seed=inventory_hostname) }}'
hour: '{{ 23 | random(seed=inventory_hostname) }}'
weekday: 0
weekday: '0'
- name: Create db backup dest
file:
state: directory

View File

@ -89,8 +89,8 @@
name: pack-git-refs
state: present
job: 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;'
minute: 7
hour: 4
minute: '7'
hour: '4'
- name: Install logging config
copy:

View File

@ -12,8 +12,8 @@
name: pack-git-refs
state: present
job: 'find /var/lib/zuul/git/ -maxdepth 3 -type d -name ".git" -exec git --git-dir="{}" pack-refs --all \;'
minute: 7
hour: 4
minute: '7'
hour: '4'
- name: Install logging config
copy:

View File

@ -22,6 +22,6 @@
name: 'zuul-scheduler-status-prune-{{ tenant }}'
state: present
user: root
minute: 0
minute: '0'
job: |
flock -n /var/run/{{ tenant }}_status_prune.lock ls -dt -1 /var/lib/zuul/backup/{{ tenant }}_* |sed -e '1,120d' |xargs rm -f