ansible/roles/sidekiq/tasks/main.yml in subspace-2.5.10 vs ansible/roles/sidekiq/tasks/main.yml in subspace-3.0.0.rc1

- old
+ new

@@ -1,19 +1,15 @@ --- - - name: Install sidekiq monit script + - name: Install systemd sidekiq script + become: true template: - src: sidekiq-monit-rc - dest: /etc/monit/conf-available/sidekiq_{{project_name}}_{{rails_env}} + src: sidekiq-systemd.service + dest: /etc/systemd/system/sidekiq.service + + - name: Enable systemd sidekiq service become: true + systemd: + name: sidekiq + enabled: yes + daemon_reload: true - - name: Clean up old sidekiq monit scripts - shell: rm -f /etc/monit/conf.d/sidekiq_* - - - name: Enable sidekiq monit script - file: - src: /etc/monit/conf-available/sidekiq_{{project_name}}_{{rails_env}} - dest: /etc/monit/conf-enabled/sidekiq_{{project_name}}_{{rails_env}} - state: link - notify: - - reload_monit - - restart_monit - +# TODO Read the gemfile and make sure they have sidekiq 6????