Robert Kaussow
a20a56563b
All checks were successful
continuous-integration/drone/push Build is passing
32 lines
870 B
YAML
32 lines
870 B
YAML
---
|
|
- block:
|
|
- name: Write environment file
|
|
template:
|
|
src: etc/sysconfig/renovate.j2
|
|
dest: /etc/sysconfig/renovate
|
|
mode: 0600
|
|
notify: __renovate_restart
|
|
|
|
- name: Write timer file
|
|
template:
|
|
src: etc/systemd/system/renovate.timer.j2
|
|
dest: /etc/systemd/system/renovate.timer
|
|
mode: 0644
|
|
notify: __renovate_restart
|
|
|
|
- name: Write service file
|
|
template:
|
|
src: etc/systemd/system/renovate.service.j2
|
|
dest: /etc/systemd/system/renovate.service
|
|
mode: 0644
|
|
notify: __renovate_restart
|
|
|
|
- name: Ensure renovatebot timer is up and running
|
|
service:
|
|
name: renovate.timer
|
|
daemon_reload: yes
|
|
enabled: yes
|
|
state: "{{ renovatebot_service_stopped | ternary('stopped', 'started', 'started') }}"
|
|
become: True
|
|
become_user: root
|