Skip to content

Commit

Permalink
add missing enabled=yes for ansible.builtin.systemd
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Nemirowski <sergio@nspcc.ru>
  • Loading branch information
Sergio Nemirowski committed Apr 1, 2022
1 parent 401a128 commit f63474c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tasks/binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}' ]
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tasks/tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}' ]
2 changes: 1 addition & 1 deletion tasks/wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}' ]

0 comments on commit f63474c

Please sign in to comment.