Skip to content

Commit

Permalink
Merge pull request #23 from ehh-why-its-so-hard/enable-services
Browse files Browse the repository at this point in the history
fix: services are not started automatically after server restart
  • Loading branch information
daniel1302 authored Nov 5, 2024
2 parents 9b2ca70 + 44c02d2 commit 8ee6d64
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
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"

0 comments on commit 8ee6d64

Please sign in to comment.