Skip to content

Commit

Permalink
Restart services after config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dacook committed Apr 22, 2024
1 parent a2bed01 commit f5fcd99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/app/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
- { src: "env.j2", dest: "{{ config_path }}/.env.{{ rails_env }}" }
- { src: "postgresql.yml.j2", dest: "{{ config_path }}/database.yml" }
tags: app_templates
notify:
- restart puma
- restart postgres
- restart sidekiq

- name: get l10n repo
git:
Expand Down
7 changes: 7 additions & 0 deletions roles/shared_handlers/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@
state: restarted
become: yes
become_user: root

- name: restart sidekiq
service:
name: sidekiq
state: restarted
become: yes
become_user: root

0 comments on commit f5fcd99

Please sign in to comment.