deploy/ansible/sidekiq/tasks/main.yml
---
- name: Copy system service file
become: yes
copy:
src: sidekiq.service
dest: /etc/systemd/system
- name: Enable sidekiq service
become: yes
systemd:
name: sidekiq
enabled: yes
- name: Force systemd to reread configs
become: yes
systemd:
daemon_reload: yes