Skip to content

Commit

Permalink
feat: improve initial start
Browse files Browse the repository at this point in the history
  • Loading branch information
escalate committed Feb 26, 2024
1 parent 2605073 commit a3dc7d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
name: loki
state: restarted
daemon_reload: true
when: not loki_service_started.changed
8 changes: 7 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@
mode: 0644
notify: Restart loki service

- name: Start and enable service
- name: Start service
ansible.builtin.systemd:
name: loki
state: started
daemon_reload: true
register: loki_service_started

- name: Enable service
ansible.builtin.systemd:
name: loki
enabled: true
daemon_reload: true

Expand Down

0 comments on commit a3dc7d0

Please sign in to comment.