From 379803b05448febcf33eb22bfae9b106f1caf06a Mon Sep 17 00:00:00 2001 From: Makhonin Vitaliy Date: Wed, 14 Aug 2024 13:40:48 +0300 Subject: [PATCH] Fix --- .../tasks/validator.service.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/roles/validator_bootstrap/tasks/validator.service.yaml b/roles/validator_bootstrap/tasks/validator.service.yaml index b5ec185..dd36450 100644 --- a/roles/validator_bootstrap/tasks/validator.service.yaml +++ b/roles/validator_bootstrap/tasks/validator.service.yaml @@ -1,8 +1,24 @@ --- +- name: Disable old validator services + systemd: + name: "{{ item.0 }}" + state: "{{ item.1 }}" + enabled: no + ignore_errors: True + with_nested: + - [ 'solana-validator', 'agave-validator'] + - [ 'stopped' ] + tags: + - validator.service + - name: Remove validator systemd service unit file file: - path: "/etc/systemd/system/validator.service" + path: "/etc/systemd/system/{{ item }}.service" state: absent + with_items: + - "validator" + - "agave-validator" + - "solana-validator" tags: - validator.service