ansible-role-renovate/tasks/main.yml
Markus Pesch f2abf22b80
All checks were successful
continuous-integration/drone/push Build is passing
fix: execute separate shell scripts to start and stop renovate
2023-09-22 20:21:33 +02:00

46 lines
1.0 KiB
YAML

---
- name: Create directory to store configuration files
ansible.builtin.file:
path: "{{ renovate_dir }}"
owner: root
group: docker
mode: "0775"
state: directory
recurse: true
- name: Create configuration files
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "{{ renovate_dir }}/{{ item | basename }}"
owner: root
group: docker
mode: "0664"
with_items:
- srv/docker/renovate/docker-compose.yml
- srv/docker/renovate/config.json
- name: Create start and stop scripts
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "/{{ item }}"
owner: root
group: docker
mode: "0770"
with_items:
- usr/local/bin/start-renovate.sh
- usr/local/bin/stop-renovate.sh
- name: Create systemd unit files
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "{{ renovate_systemd_dir }}/{{ item | basename }}"
owner: root
group: root
mode: "0644"
with_items:
- etc/systemd/system/renovate.service
- etc/systemd/system/renovate.timer
notify:
- Enable renovate