Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: services are not started automatically after server restart #23

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/grafana_agent/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
ansible.builtin.service:
name: grafana-agent
state: restarted
enabled: true
listen: Restart grafana-agent
when: not ansible_check_mode
1 change: 1 addition & 0 deletions roles/grafana_mimir/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ansible.builtin.systemd:
name: grafana-mimir@{{ grafana_mimir_instance_id }}
daemon_reload: true
enabled: true
state: restarted
become: true
listen: "Restart grafana-mimir@{{ grafana_mimir_instance_id }}"
Expand Down
1 change: 1 addition & 0 deletions roles/jenkins_master/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
- name: "Restart jenkins"
ansible.builtin.systemd:
name: jenkins
daemon_reload: true
enabled: true
state: restarted
2 changes: 2 additions & 0 deletions roles/oracle_price_pusher/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,7 @@
ansible.builtin.systemd_service:
name: "oracle-price-pusher@{{- item.name -}}"
state: restarted
daemon_reload: true
enabled: true
with_items: "{{ oracle_price_pusher_configs }}"
become: true
1 change: 1 addition & 0 deletions roles/vega_caddy_server/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
ansible.builtin.systemd:
name: caddy
state: restarted
daemon_reload: true
enabled: true
when: not ansible_check_mode
3 changes: 3 additions & 0 deletions roles/vega_core/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ansible.builtin.service:
state: "{{- 'restarted' if vega_core_run_network else 'stopped' -}}"
daemon_reload: true
enabled: true
name: vegavisor
listen: "Restart vegavisor"
when: not ansible_check_mode
Expand All @@ -11,6 +12,7 @@
ansible.builtin.service:
state: "{{- 'restarted' if vega_core_run_network else 'stopped' -}}"
daemon_reload: true
enabled: true
name: blockexplorer
listen: "Restart blockexplorer"
when: not ansible_check_mode
Expand All @@ -19,6 +21,7 @@
ansible.builtin.service:
state: "{{- 'restarted' if vega_core_run_network else 'stopped' -}}"
daemon_reload: true
enabled: true
name: vega-health-check
listen: "Restart vega-health-check"
when: not ansible_check_mode
2 changes: 2 additions & 0 deletions roles/vega_monitoring/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
ansible.builtin.systemd:
name: vega-monitoring
state: restarted
daemon_reload: true
enabled: true
become: true
listen: "Restart vega-monitoring"
when: not ansible_check_mode
1 change: 1 addition & 0 deletions roles/vega_postgresql/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- name: Restart postgresql
ansible.builtin.service:
state: restarted
daemon_reload: true
enabled: true
name: postgresql
listen: "Restart postgresql"