diff --git a/roles/grafana_agent/handlers/main.yaml b/roles/grafana_agent/handlers/main.yaml index 7fc95e6..a221474 100644 --- a/roles/grafana_agent/handlers/main.yaml +++ b/roles/grafana_agent/handlers/main.yaml @@ -3,5 +3,6 @@ ansible.builtin.service: name: grafana-agent state: restarted + enabled: true listen: Restart grafana-agent when: not ansible_check_mode diff --git a/roles/grafana_mimir/handlers/main.yaml b/roles/grafana_mimir/handlers/main.yaml index 4d3443c..5fcc1a7 100644 --- a/roles/grafana_mimir/handlers/main.yaml +++ b/roles/grafana_mimir/handlers/main.yaml @@ -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 }}" diff --git a/roles/jenkins_master/handlers/main.yaml b/roles/jenkins_master/handlers/main.yaml index 16b9e17..2833b9a 100644 --- a/roles/jenkins_master/handlers/main.yaml +++ b/roles/jenkins_master/handlers/main.yaml @@ -6,5 +6,6 @@ - name: "Restart jenkins" ansible.builtin.systemd: name: jenkins + daemon_reload: true enabled: true state: restarted diff --git a/roles/oracle_price_pusher/tasks/main.yaml b/roles/oracle_price_pusher/tasks/main.yaml index c7db384..248b2c9 100644 --- a/roles/oracle_price_pusher/tasks/main.yaml +++ b/roles/oracle_price_pusher/tasks/main.yaml @@ -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 diff --git a/roles/vega_caddy_server/handlers/main.yaml b/roles/vega_caddy_server/handlers/main.yaml index 87b59ca..231aa23 100644 --- a/roles/vega_caddy_server/handlers/main.yaml +++ b/roles/vega_caddy_server/handlers/main.yaml @@ -3,5 +3,6 @@ ansible.builtin.systemd: name: caddy state: restarted + daemon_reload: true enabled: true when: not ansible_check_mode diff --git a/roles/vega_core/handlers/main.yaml b/roles/vega_core/handlers/main.yaml index ed817be..cb29637 100644 --- a/roles/vega_core/handlers/main.yaml +++ b/roles/vega_core/handlers/main.yaml @@ -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 @@ -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 @@ -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 diff --git a/roles/vega_monitoring/handlers/main.yaml b/roles/vega_monitoring/handlers/main.yaml index 27725b8..17e12ed 100644 --- a/roles/vega_monitoring/handlers/main.yaml +++ b/roles/vega_monitoring/handlers/main.yaml @@ -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 diff --git a/roles/vega_postgresql/handlers/main.yaml b/roles/vega_postgresql/handlers/main.yaml index 1cd04dd..ee87f03 100644 --- a/roles/vega_postgresql/handlers/main.yaml +++ b/roles/vega_postgresql/handlers/main.yaml @@ -2,6 +2,7 @@ - name: Restart postgresql ansible.builtin.service: state: restarted + daemon_reload: true enabled: true name: postgresql listen: "Restart postgresql"