From f63474cbb2b0569c5e2ee03d5649008dbee1763a Mon Sep 17 00:00:00 2001 From: Sergio Nemirowski Date: Fri, 1 Apr 2022 14:41:20 +0300 Subject: [PATCH] add missing enabled=yes for ansible.builtin.systemd Signed-off-by: Sergio Nemirowski --- handlers/main.yml | 3 ++- tasks/binary.yml | 2 +- tasks/main.yml | 8 ++++---- tasks/tls.yml | 2 +- tasks/wallet.yml | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 01edf09..4989e95 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,7 +1,8 @@ --- -- name: 'Restart NeoGo{{ neogo__instance }} service' +- name: 'Restart NeoGo{{ neogo__instance }}' ansible.builtin.systemd: name: "neogo{{ neogo__instance }}.service" state: 'restarted' + enabled: yes daemon_reload: yes diff --git a/tasks/binary.yml b/tasks/binary.yml index 1d8476d..8d42779 100644 --- a/tasks/binary.yml +++ b/tasks/binary.yml @@ -9,4 +9,4 @@ group: 'root' mode: '0755' when: not (neogo__use_compose | bool) - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ] diff --git a/tasks/main.yml b/tasks/main.yml index 5216e09..a27c56f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -31,7 +31,7 @@ owner: 'root' group: '{{ neogo__group }}' mode: '0640' - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ] - name: Copy compose file ansible.builtin.template: @@ -41,21 +41,21 @@ group: "{{ neogo__group }}" mode: '0640' when: neogo__use_compose | bool - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ] - name: Copy regular systemd unit ansible.builtin.template: src: "neogo-legacy.service.bin.j2" dest: "/etc/systemd/system/neogo{{ neogo__instance }}.service" when: not (neogo__use_compose | bool) - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ] - name: Copy dockerized systemd unit ansible.builtin.template: src: "neogo-legacy.service.compose.j2" dest: "/etc/systemd/system/neogo{{ neogo__instance }}.service" when: neogo__use_compose | bool - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ] - name: Force debops.ferm run ansible.builtin.include_role: diff --git a/tasks/tls.yml b/tasks/tls.yml index e3d6cf5..769c4e0 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -15,4 +15,4 @@ group: "{{ neogo__group }}" mode: '0640' when: neogo__tls_enabled | bool - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ] diff --git a/tasks/wallet.yml b/tasks/wallet.yml index 56ea208..fd60ed4 100644 --- a/tasks/wallet.yml +++ b/tasks/wallet.yml @@ -10,4 +10,4 @@ when: > (neogo__wallet_content is defined) and (neogo__wallet_content|length > 0) - notify: [ 'Restart NeoGo{{ neogo__instance }} service' ] + notify: [ 'Restart NeoGo{{ neogo__instance }}' ]