From 267d7e728d2f50bb877a8f2ec1f07f0bc7535ee4 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 25 Apr 2020 10:37:56 -0500 Subject: [PATCH] Cron module wants strings We're getting ansible warnings about converting these to strings for us. Change-Id: Iba70b5e71ded01ca2e11276fb2f007c9d7aa1866 --- playbooks/roles/gitea/tasks/main.yaml | 2 +- playbooks/roles/zuul-executor/tasks/main.yaml | 4 ++-- playbooks/roles/zuul-merger/tasks/main.yaml | 4 ++-- playbooks/roles/zuul-status-backup/tasks/main.yaml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playbooks/roles/gitea/tasks/main.yaml b/playbooks/roles/gitea/tasks/main.yaml index 0204e0c1b8..e32664d75f 100644 --- a/playbooks/roles/gitea/tasks/main.yaml +++ b/playbooks/roles/gitea/tasks/main.yaml @@ -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 diff --git a/playbooks/roles/zuul-executor/tasks/main.yaml b/playbooks/roles/zuul-executor/tasks/main.yaml index da0545f2a8..4fba7ef0ba 100644 --- a/playbooks/roles/zuul-executor/tasks/main.yaml +++ b/playbooks/roles/zuul-executor/tasks/main.yaml @@ -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: diff --git a/playbooks/roles/zuul-merger/tasks/main.yaml b/playbooks/roles/zuul-merger/tasks/main.yaml index 944a6c030f..8765ecb4af 100644 --- a/playbooks/roles/zuul-merger/tasks/main.yaml +++ b/playbooks/roles/zuul-merger/tasks/main.yaml @@ -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: diff --git a/playbooks/roles/zuul-status-backup/tasks/main.yaml b/playbooks/roles/zuul-status-backup/tasks/main.yaml index 210121d7a6..afda193e19 100644 --- a/playbooks/roles/zuul-status-backup/tasks/main.yaml +++ b/playbooks/roles/zuul-status-backup/tasks/main.yaml @@ -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