2021-12-06 11:29:17 +01:00
|
|
|
---
|
|
|
|
# tasks file for ansible-renovate-role
|
|
|
|
|
|
|
|
- name: Ensure pip is present
|
|
|
|
package:
|
|
|
|
name: python3-pip
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Install requirements
|
|
|
|
pip:
|
|
|
|
name: '{{ item.name }}'
|
|
|
|
executable: '{{ item.exec }}'
|
|
|
|
loop: '{{ __docker_requirements }}'
|
|
|
|
|
|
|
|
- name: 'Pull renovate image'
|
|
|
|
docker_image:
|
|
|
|
source: pull
|
|
|
|
name: '{{ renovate_image_name }}'
|
|
|
|
tag: '{{ renovate_image_tag }}'
|
|
|
|
state: 'present'
|
|
|
|
force_source: true
|
|
|
|
|
|
|
|
- name: Add config file
|
|
|
|
template:
|
|
|
|
src: renovate-config.js.j2
|
|
|
|
dest: /etc/renovate/config.js
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
|
|
|
|
- name: Add exec script
|
|
|
|
template:
|
|
|
|
src: renovate.j2
|
|
|
|
dest: /etc/renovate/renovate
|
|
|
|
owner: root
|
|
|
|
group: root
|
2021-12-06 12:41:42 +01:00
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
|
|
|
|
- name: Add cron
|
|
|
|
cron:
|
|
|
|
name: Run renovate
|
|
|
|
minute: "0"
|
|
|
|
job: "/etc/renovate/renovate"
|