Part of the issue is resolved with -become=true (:facepalm: ...I know), 
forgot to escalate privileges which is needed to get the correct state of 
the service...

But still I'm not able to get to services that are not chkconfiged (or 
systemctl enabled)... 
Is there any workaround to get the state of those services with this module?

On Thursday, April 19, 2018 at 2:37:00 PM UTC+2, Stevan Svilokos wrote:
>
> Hi all,
>
> I came across service_facts (seems like previously called scan_services) 
> to gather information about available services on the host, and their state.
> Soon I realized that some services were missing, solution was to add 
> service in chkconfig (for sysv or enable them in systemd). However, still 
> some services tend to be missed, and some have state: stopped when they are 
> running (turns out the service needs to be chkconfig on, not just --add, 
> but that partialy solves the issue).
>
> Is anyone familiar with this module and how the services on host are 
> supposed to be configured in order to get the full list of services (both 
> running and stopped)?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fb4df4fe-4f8b-4a9c-ba16-f5ab64a377b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to