2020-10-10 08:03:50 +00:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Write environment file
|
|
|
|
template:
|
|
|
|
src: etc/sysconfig/renovate.j2
|
|
|
|
dest: /etc/sysconfig/renovate
|
2021-02-04 20:50:43 +00:00
|
|
|
mode: 0600
|
2020-10-10 08:03:50 +00:00
|
|
|
notify: __renovate_restart
|
|
|
|
|
|
|
|
- name: Write timer file
|
|
|
|
template:
|
|
|
|
src: etc/systemd/system/renovate.timer.j2
|
|
|
|
dest: /etc/systemd/system/renovate.timer
|
2021-02-04 20:50:43 +00:00
|
|
|
mode: 0644
|
2020-10-10 08:03:50 +00:00
|
|
|
notify: __renovate_restart
|
|
|
|
|
|
|
|
- name: Write service file
|
|
|
|
template:
|
|
|
|
src: etc/systemd/system/renovate.service.j2
|
|
|
|
dest: /etc/systemd/system/renovate.service
|
2021-02-04 20:50:43 +00:00
|
|
|
mode: 0644
|
2020-10-10 08:03:50 +00:00
|
|
|
notify: __renovate_restart
|
2020-10-10 12:03:07 +00:00
|
|
|
|
|
|
|
- name: Ensure renovatebot timer is up and running
|
|
|
|
systemd:
|
|
|
|
name: renovate.timer
|
|
|
|
daemon_reload: yes
|
|
|
|
enabled: yes
|
2020-10-10 13:01:49 +00:00
|
|
|
state: "{{ renovatebot_service_stopped | ternary('stopped', 'started', 'started') }}"
|
2020-10-10 08:03:50 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|