diff --git a/handlers/main.yml b/handlers/main.yml index 931029a..098e5e6 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: enable renovate - systemd: + ansible.builtin.systemd: name: "renovate.timer" state: started enabled: true diff --git a/tasks/main.yml b/tasks/main.yml index dd3bfaf..5742c7b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,16 +1,16 @@ --- - name: Create directory to store configuration files - file: + ansible.builtin.file: path: "{{ renovate_dir }}" owner: root group: docker mode: 0775 state: directory - recurse: yes + recurse: true - name: Create configuration files - template: + ansible.builtin.template: src: "{{ item }}.j2" dest: "{{ renovate_dir }}/{{ item | basename }}" owner: root @@ -21,9 +21,12 @@ - srv/docker/renovate/config.json - name: Create systemd unit files - template: + 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