Have you tried using the service name rather than the Display Name? On Monday, March 19, 2018 at 9:43:20 AM UTC-5, [email protected] wrote: > > Hi All > > I am trying to use thw win_service module to start a service. > > My issue is the service name contains non-valid characters and I dont seem > to be able escape the name correctly. > > The service name is this:- "SAS [config-Lev1] SASMeta - Metadata Server". > > Any regexp or normal escaping of characters fails. > > task code is: > > - name: Start Metadata Server > > win_service: > > name: "SAS [config-Lev1] SASMeta - Metadata Server" > state: started > > Any ideas or is it a bug? > > Bob >
-- 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/0de64f09-a5f1-461c-bde6-7bfb0c1eecc2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
