xoxys.renovate_bot/tasks/setup.yml
Robert Kaussow ea8b805851
All checks were successful
continuous-integration/drone/push Build is passing
fix: solve linting issues
2021-02-04 21:50:43 +01:00

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
systemd:
name: renovate.timer
daemon_reload: yes
enabled: yes
state: "{{ renovatebot_service_stopped | ternary('stopped', 'started', 'started') }}"
become: True
become_user: root