37 lines
750 B
YAML
37 lines
750 B
YAML
|
---
|
||
|
# 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
|
||
|
mode: u=rwx,g=rx,o=rx
|