[ansible-project] Re: Ansible windows modules

2016-02-23 Thread Quang Truong
Jon, I have tried with win_package, as .NET framework 4.5 can not be uninstalled so I just grab a fake product_id (not sure for the other but for me, I'm using ansible 1.9.3 and product_id param should be *productid* without dash) and the results are the same as using raw command. If I use the

[ansible-project] Re: win_package product_id

2016-02-23 Thread Gerald Spencer
It is: Python 3.5 64bit https://www.continuum.io/downloads -- 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-project+unsubscr...@googlegroups.com. To

Re: [ansible-project] YAML variable without using quotes?

2016-02-23 Thread RobL
I'm still seeing a repro of the bug. Is this the commit you're referring to? https://github.com/ansible/ansible/pull/10465 For this bug? https://github.com/ansible/ansible/issues/9362 On Thursday, February 18, 2016 at 8:59:36 AM UTC-8, Brian Coca wrote: > > that is a bug in that version, it

Re: [ansible-project] authorized_key module not working

2016-02-23 Thread Brian Coca
It does not need a key but it DOES need a way to login, normally user/password if keys are not available. The other option is a super user that already has access can copy the keys for the specific users. Some cloud APIs allow for pushing a key through alternate methods, this module does not know

Re: [ansible-project] authorized_key module not working

2016-02-23 Thread chrono
I've been looking at the - output and it doesn't really help. I guess I should ask this question.. Does this module work for copying over the initial key? Or does it only work if there is already an ssh-key set up for ansible to use? On Tuesday, February 23, 2016 at 2:32:30 PM UTC-5, Dick

[ansible-project] Re: synchronize sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

2016-02-23 Thread Gary Morse
for anyone finding this, here's how i solved it. The issue is that the synchronize task tries to escalate to root on the tower machine, not on the target host. Since awx user doesnt have sudo permissions, it fails. to fix this, set sudo to "no" on the task and specify the rsync_path as

Re: [ansible-project] Re: Ansible 2.0.1 RC2 is available for testing

2016-02-23 Thread James Cammarata
Sorry for not seeing your response before. The release was held up a bit by AnsibleFest, but we should be getting it out tomorrow. Thanks! James Cammarata Director, Ansible Core Engineering github: jimi-c On Tue, Feb 16, 2016 at 4:36 PM, Slim Slam wrote: > Any rough

Re: [ansible-project] Ansible Inventory - Groups by Regular Expression?

2016-02-23 Thread Brian Coca
no, but the patterns do work in host expressions (hosts: ~.*-GB$ , --limit '~*-US$') -- 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-project] Use ec2_remote_facts in another playbook

2016-02-23 Thread Colin Byrne
So the ec2_remote_facts has been great at getting the facts, but because it has to run against localhost, I have to run it as a separate play and can't use the registered information in a play run against other hosts. How can I transfer that registered variable to the new play/different hosts?

Re: [ansible-project] authorized_key module not working

2016-02-23 Thread Dick Davies
Try with '-' for starters, and compare with SSHing with the servers directly. On 23 February 2016 at 18:48, chrono wrote: > Hello, > > I wrote a playbook that checks out brand new servers that are built for my > team. To make things truly one-and-done, I thought

Re: [ansible-project] Re: using register stdout_lines in with_items loop

2016-02-23 Thread Matt Martz
The "problem" is in how ansible registers results when using with_items. It nests all of the results inside of a `results` key Your second task could have been written to use: - name: use shell to print list of file paths shell: "echo {{ item }}" with_items: "{{

[ansible-project] Re: using register stdout_lines in with_items loop

2016-02-23 Thread Jason Gilfoil
So after some testing and reading i'm gonna attempt to answer my own question, and pose another one. The documentation I cited for iterating the results of a program execution didn't involve the use of with_items in the original program execution. Having multiple results in a register variable

[ansible-project] authorized_key module not working

2016-02-23 Thread chrono
Hello, I wrote a playbook that checks out brand new servers that are built for my team. To make things truly one-and-done, I thought it would be clever to include a play that copies the ssh public key from our ansible controller to the freshly built remote hosts. I tried using the

[ansible-project] synchronize sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

2016-02-23 Thread Gary Morse
after upgrading to ansible 2.0 i am getting an error when trying to synchronize a directory to a remote server. Ansible version: 2.0.0.2 The entire playbook runs with sudo:yes, but the error only happens on the synchronize module. does anyone have have an idea or places to look to resolve my

Re: [ansible-project] 'unsupported parameter for module: notify' error when trying to call notify from a task

2016-02-23 Thread Colin Anderson
Aah yes, that did the trick; lesson learned. Thanks. Colin. On Saturday, 20 February 2016 16:41:24 UTC, Matt Martz wrote: > > `notify` is indeed not a parameter of the `template` module. > > Effectively this error is stating that you have indented your `notify` too > far. It should be directly

[ansible-project] Galaxy 2.0.1 Release

2016-02-23 Thread Chris Houseknecht
We will be releasing Galaxy 2.0.1 this Friday 2/26 starting at 7:30AM EST and ending at 8:00AM EST. During this window access to Galaxy may be interrupted, so please plan accordingly. --Chris Chris Houseknecht Lead Galaxy Engineer @chouseknecht

[ansible-project] Galaxy Maintenance Window 2/25 7:30AM EST

2016-02-23 Thread Chris Houseknecht
We will be performing some network maintenance on Galaxy this Thursday 2/25 starting at 7:30AM EST and ending at 8:00AM EST. We will do our best to keep access to Galaxy uninterrupted during this window. --Chris Chris Houseknecht Lead Galaxy Engineer

[ansible-project] Re: Ansible windows modules

2016-02-23 Thread Stavros
The NDP452-KB2901907-x86-x64-AllOS-ENU.exe package contains the framework for various Windows versions. Have you tried to install it from the cli? E.g. start powershell as admin and try to install it? In my case, I wrote a playbook in order to install it on a W2012R2 using ansible. Here an

Re: [ansible-project] Simplest way to pass username & password to Git, when using http(s)?

2016-02-23 Thread Toshio Kuratomi
On Feb 20, 2016 8:35 AM, "eric via Ansible Project" < ansible-project@googlegroups.com> wrote: > > I'm using Ansible to clone / update a Git repository that I'm accessing via HTTP, using username & password. Except that the "git" task really doesn't help me. > > I can't put those credentials in

[ansible-project] Re: Windows File Difference

2016-02-23 Thread 'J Hawkesworth' via Ansible Project
At the moment I don't think there's anything in the windows modules that will help with this. If anyone knows better please say but I think today --check and --diff aren't implemented for windows modules. However, it might be possible to make use of the --check and --diff playbook command

[ansible-project] Re: Ansible windows modules

2016-02-23 Thread 'J Hawkesworth' via Ansible Project
I would recommend trying the win_package module which can take properties and, if you capture the product_id you can use that in your playbook to make sure it only attempts installation once. Hope this helps, Please report back if this works for you so others can learn from your experience.

[ansible-project] Windows File Difference

2016-02-23 Thread Mark Matthews
Hi I am trying to find an way Ansible can not only alert me of a change in a file but exactly what was changed in that file. I am currently using win_stat play bookk to check the host file of a server and let me know if anything has changed. This works great, cut it only tells me if something

[ansible-project] Re: ERROR! 'item' is undefined" with synchronize module + with items

2016-02-23 Thread AS
Struggled with this problem for few days and finally managed to fix it. 1. Removed ansible from the machine (deleted everything) ansible --version ansible 2.0.1.0 (detached HEAD bec698052f) last updated 2016/02/22 11:04:54 (GMT +100) lib/ansible/modules/core: (detached HEAD 9552a22b83) last

[ansible-project] Re: win_package product_id

2016-02-23 Thread Trond Hindenes
Is this a package which is publicly available? I'd like to have a closer look. On Friday, February 19, 2016 at 10:10:05 AM UTC+1, Gerald Spencer wrote: > > Interesting. So following your advice, the value in > HKLM:\Software\microsoft\windows\currentversion\uninstall is Python 3.5*.1 >

[ansible-project] Re: Ansible managing Windows hosts with non admin user

2016-02-23 Thread Trond Hindenes
Interesting. My guess would be that this works, as Ansible doesn't do anything outside the logged-on user's profile (until you start pushing tasks that require admin access, of course). What is the exact error you're getting? Can you use the "raw" module to do something simple like list the