diff --git a/roles/validator_bootstrap/tasks/validator.service.yaml b/roles/validator_bootstrap/tasks/validator.service.yaml index 9a25094..b5ec185 100644 --- a/roles/validator_bootstrap/tasks/validator.service.yaml +++ b/roles/validator_bootstrap/tasks/validator.service.yaml @@ -1,7 +1,7 @@ --- - name: Remove validator systemd service unit file file: - path: "/etc/systemd/system/{{ validator_binary }}.service" + path: "/etc/systemd/system/validator.service" state: absent tags: - validator.service @@ -9,7 +9,7 @@ - name: Create validator service template: src: validator.service.j2 - dest: "/lib/systemd/system/{{ validator_binary }}.service" + dest: "/lib/systemd/system/validator.service" mode: 0644 owner: root group: root @@ -34,14 +34,14 @@ - name: Enable validator service systemd: - name: "{{ validator_binary }}" + name: "validator" enabled: yes tags: - validator.service - name: Start validator service systemd: - name: "{{ validator_binary }}" + name: "validator" state: "{{ item }}" with_items: - "started" diff --git a/roles/validator_bootstrap/templates/validator.logrotate.j2 b/roles/validator_bootstrap/templates/validator.logrotate.j2 index beea581..3f2dc42 100644 --- a/roles/validator_bootstrap/templates/validator.logrotate.j2 +++ b/roles/validator_bootstrap/templates/validator.logrotate.j2 @@ -6,7 +6,7 @@ compress missingok postrotate - systemctl kill -s USR1 {{ validator_binary }}.service + systemctl kill -s USR1 validator.service endscript } diff --git a/roles/validator_remove/tasks/main.yaml b/roles/validator_remove/tasks/main.yaml index 93a5182..9516ac2 100644 --- a/roles/validator_remove/tasks/main.yaml +++ b/roles/validator_remove/tasks/main.yaml @@ -58,7 +58,7 @@ - "{{ mount_base_path }}" - "{{ validator_home }}" - "{{ swap_file.stdout }}" - - "/etc/systemd/system/{{ validator_binary }}.service" + - "/etc/systemd/system/validator.service" - "/etc/default/validator-env" - "{{ sv_manager_config_path }}" tags: