Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 126 forks source link

graylog-server.service not enabled at boot #76

Closed jdelvecchio closed 3 years ago

jdelvecchio commented 7 years ago

Can this feature be added ? Or is there a reason why it is not in this role ?

The only code that refers to 'boot' in this role is at tasks/server.yml

- name: Graylog server should start after reboot
  file:
    path: '/etc/init/graylog-server.override'
    state: absent

And it seems outdated, the correct block should be (on systemd based OS) the following

- name: enabling graylog-server at boot
  service:
    name: graylog-server.service
    enabled: yes

Thanks.

jalogisch commented 6 years ago

@jdelvecchio we would welcome a PR that is tested.

malcyon commented 3 years ago

I am here to clean up old tickets.

I tested this, and it does enable the service in my Vagrant instance.

It looks like it is being enabled here:

https://github.com/Graylog2/graylog-ansible-role/blob/main/handlers/main.yml#L16