diff --git a/hosts b/hosts index 7db02ca..28c10e0 100644 --- a/hosts +++ b/hosts @@ -1,5 +1,5 @@ [bespoke] -renovate ansible_ssh_private_key_file=~/.ssh/id_clank ansible_host=5.75.254.153 wireguard_peer_ip=10.0.9.9 +renovate ansible_ssh_private_key_file=~/.ssh/id_clank ansible_host=10.0.9.9 wireguard_peer_ip=10.0.9.9 [renovate] -renovate ansible_ssh_private_key_file=~/.ssh/id_clank ansible_host=5.75.254.153 wireguard_peer_ip=10.0.9.9 +renovate ansible_ssh_private_key_file=~/.ssh/id_clank ansible_host=10.0.9.9 wireguard_peer_ip=10.0.9.9 diff --git a/roles/repos/renovate/tasks/main.yml b/roles/repos/renovate/tasks/main.yml index f4a0141..77b23b5 100644 --- a/roles/repos/renovate/tasks/main.yml +++ b/roles/repos/renovate/tasks/main.yml @@ -24,3 +24,11 @@ docker_compose: project_src: ~/git/git.front.kjuulh.io/kjuulh/renovate/ when: compose_file_stat.stat.exists and github_env_stat.stat.exists and env_stat.stat.exists + +- name: renovate clean cron job + cron: + name: renovate clean cronjob + user: "root" + minute: "0" + hour: "2,14" + job: "docker-compose -f ~/git/git.front.kjuulh.io/kjuulh/renovate/docker-compose.yaml down -v --remove-orphans && docker-compose -f ~/git/git.front.kjuulh.io/kjuulh/renovate/docker-compose.yaml up -d >> /var/log/renovate-clean.log 2>&1"