Hi, I'm also trying to get this going on windows, I would love to know how you got rid of the error:
File "c:\ansible\lib\ansible\runner\__init__.py", line 21, in <module>
> import pwd
> ImportError: No module named pwd
Did you install some dependencies to make pwd work, or did you comment out code in a .py module
--
I used the python install from Cygwin and not the one from Windows.
--
>
>
> LOL. Does this mean that you have a regular day job and are just rolling
> this on the side for fun?
the best way to do that is figure out how and make it happen.
--
That's awesome I will try it later. We will probably need to create commands that play nice with ms install too
Hey guys,I just checked in an initial version of the client running natively on windows (Without Cygwin or ActivePython):https://github.com/shlomozippel/ansible/tree/windowsI only sanity tested the ping command, and I had to rename ansible to ansible-win.py (the script needs .py extension in windows for multiprocessing module to find it, and it can't be called ansible.py because then 'import ansible' finds the script instead of the package).I will spend some more time on this in the next few days/weeks but just wanted to let you know about it.
- Shlomo
On Wednesday, November 21, 2012 8:42:41 AM UTC-8, Peder Jakobsen wrote:
--
I have both windows and Linux servers. I love ansible and find the windows management environments overkill for most things. I would definitely like to use ansible to manage windows if possible.
Hi,
This is nice.
My suggestion would be rather than creating the ansible-win, we try
and get these changes encapsulated in utils and other functions, using
try/except ImportError and so forth as neccessary.
This will prevent the need to dual maintain these in the future.
Can you make this happen? If so, that would be outstanding.
ansible and ansible-win do not look that different, in other words,
and you've got most everything abstracted elsewhere.
Obviously we'd want ansible-playbook, and hopefully ansible-doc, too
--
--
Hi,I know this is a bit old but it's an interesting subject for me.I managed to cobble together an extremely hacky windows config management tool using powershell. I avoided the need for administrative shares by creating an object which contained the text of the script I wanted to create (by appending together different fragments), then I could use invoke-command in powershell and pass the entire object as an argument to create a new script file on the server. Which I could then execute. Combine it with some modules for different tasks and a for loop and you're away.It's nasty and I'm not proud, but happy to stick it on github if anyone's interested. Perhaps there's something there that could help make a windows-native andible command path.In all honesty my experience trying to do devops on Windows just made me want to work with Linux more. The lack of dependency-aware package managers, the fact that configuration data can live in so many different entities (files, databases, the registry) and the lack of a decent ssh analog (powershell remoting has some funny limitations) make the whole process a lot harder than it needs to be.Steve
Please post it, yes. And yes, devops on Windows is like trying to brush your teeth using a tiger's tail.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/17YZIgArn2g/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
--