GithubHelp home page GithubHelp logo

Comments (5)

jborean93 avatar jborean93 commented on July 17, 2024

From @jborean93 on Feb 04, 2020 22:58

@agowa338 virtual accounts should follow the format NT SERVICE\<service name> so in your case NT SERVICES\foobar. Managed service accounts are the ones that should end with $ not virtual accounts.

But even then it is still failing for me so we need to fix this up.

from ansible.windows.

jborean93 avatar jborean93 commented on July 17, 2024

From @briantist on Feb 12, 2020 03:45

This is the same issue with using gMSAs in scheduled tasks from #60990 . The password has to be null for the virtual account to work, but ansible won't let it.

https://github.com/ansible/ansible/blob/a61dcfd542d75a7477136d54bd9b02a8f3eae326/lib/ansible/modules/windows/win_service.ps1#L52-L54

Commenting out line 53 and then leaving out the password option when calling the module will make this work.

A full PR would have to check to ensure there's a useful error response in cases where a password was actually required, but a nice upside of enabling virtual accounts is that the same change should allow for a service to be configured with a gMSA as well.

I'll see if I can tackle this soon if no one else gets to it first.

from ansible.windows.

jborean93 avatar jborean93 commented on July 17, 2024

From @jborean93 on Feb 12, 2020 04:01

@briantist just an FYI I've got a WIP to overhaul the Windows service stuff in Ansible which should fix this. Feel free to open a PR if you have something ready but just be aware I've got something in the pipeline for this module.

from ansible.windows.

jborean93 avatar jborean93 commented on July 17, 2024

From @briantist on Feb 12, 2020 04:03

@briantist just an FYI I've got a WIP to overhaul the Windows service stuff in Ansible which should fix this. Feel free to open a PR if you have something ready but just be aware I've got something in the pipeline for this module.

Sounds good to me, appreciate the heads up, you might have saved my weekend ;)

from ansible.windows.

jborean93 avatar jborean93 commented on July 17, 2024

From @jborean93 on Feb 13, 2020 04:53

The PR ansible/ansible#67367 adds the C# util Ansible.Service that I am planning to get win_service to use instead of the various different sources it currently relies to manage services. I've tested that this util can correctly set the service account to both a virtual account and MSA so all that is needed for win_service to correctly support that.

Just need to finish a few other things first before getting onto win_service but it's nearly there.

from ansible.windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.