missing state(absent) in service module

Hi,

any reason why the service module doesn’t have the state=absent?

Some packages setup their service into runlevel 3 during the installation.

Would a PullRequest be accepted, which add this functionality?

  • state
    started'/stopped’ are idempotent actions that will not run
    commands unless necessary. restarted' will always bounce the service. reloaded’ will always reload. At least one of
    state and enabled are required.
    (Choices: started, stopped,
    restarted, reloaded)

Regards,
Alex

enabled=no would have the same effect as your absent idea I believe. Keeps it from being started by default.

https://docs.ansible.com/ansible/service_module.html

service module does not deal with installation so present/absent make
little sense here. enabled=yes/no already does what you suggest.

Thank you guys for the advice =)