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