gluster / gluster-ansible-infra

Ansible role to enable and deploy the backend of a Gluster cluster.
GNU General Public License v3.0
28 stars 36 forks source link

Task ensures multipathd is started, and enabled, but should this be systemd? #120

Closed Jeter-work closed 3 years ago

Jeter-work commented 3 years ago

roles/backend_setup/tasks/blacklist_mpath_devices.yml

- name: Ensure that multipathd service is running
  service:
    name: multipathd
    state: started
    enabled: yes

Should this be:

- name: Ensure that multipathd service is running
  systemd:
    name: multipathd
    state: started
    enabled: yes

?

Or is this a case where Ansible is smart and uses service/systemd according to the system?

hunter86bg commented 3 years ago

ansible.builtin.service module controls services on remote hosts. Supported init systems include BSD init, OpenRC, SysV, Solaris SMF, systemd, upstart.

So it should work on both systemV/Upstart and Systemd-based OS-es.

Jeter-work commented 3 years ago

Thank you. I understand.