You can not, because the facts do not tell whether a service is enabled
or disabled.
P.
>
> -AdamM
>
> >
> > YK
> > On Thursday, August 2, 2018 at 6:04:12 PM UTC-4, Brian Coca wrote:
> >>
> >> You can use the appropriate service module:
> >>
> >> - service: name=myservice enabled=yes
> >> check_mode: true
> >> register: isit
> >>
> >> - fail: msg=its not enabled
> >> when: isit is changed
> >>
> >>
> >>
> >>
> >>
> >> --
> >> ----------
> >> Brian Coca
> >
> > --
> > 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 ansible-proje...@googlegroups.com.
> > To post to this group, send email to ansible...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b54af985-206c-4fe3-a5ad-a0286e2f27ff%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I was actually thinking of trying to change that, but I'm short on time. Should I log a ticket or is that out of scope for the module?
I was also thinking about making it possible for service_facts to operate only on a single service, in order to save time on data collection. Same question - should I log something for that or is it out of scope?
Adam Miller
unread,
Aug 3, 2018, 9:43:39 AM8/3/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
On Fri, Aug 3, 2018 at 8:29 AM yaakov.kuperman via Ansible Project
<ansible...@googlegroups.com> wrote:
>
> I was actually thinking of trying to change that, but I'm short on time. Should I log a ticket or is that out of scope for the module?
>
> I was also thinking about making it possible for service_facts to operate only on a single service, in order to save time on data collection. Same question - should I log something for that or is it out of scope?
Please file an issue ticket, that's something the module should
probably be providing. I actually thought it did (which I'm apparently
mistaken on).