[ansible-project] Ansible Tower credentials issue

2016-02-24 Thread matias
Hi guys. I have an Ansible Tower installation which was working great until a couple of weeks ago when started to ask for login all the time. Watching the console I get "Invalid Token" all the time, and Tower keeps logging me of. All the users in that Tower have the same issue. Im running

[ansible-project] Getting this error while splitting arguments, either an unbalanced jinja2 block or quotes

2016-02-24 Thread Deepa Yr
I am a newbie to ansible. I have a playbook(playbook1) with a role and defined variables - hosts: all roles: - role1 vars: buildDetails: destination: /tmp location: /tmp url: http://example.com/test I have a task In task, main.yml I have

Re: [ansible-project] Ansible Tower credentials issue

2016-02-24 Thread Brian Coca
This list is for the Ansible OSS project (CLI tools) For tower support use supp...@ansible.com or go to http://support.ansible.com. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Brian Coca
The API is not the product, the Ansible command line tools are, the API is there for the tool usage and it not the main interface. This has always been the case and stated in many occasions and in the documentation. Runner was not simple (no class with a thousand+ line __init__ method is) and was

[ansible-project] Powershell Script not working when using PLaybook

2016-02-24 Thread Mark Matthews
Hi I hae a playbook that runs a powershell script to configure an Octopus Deploy Tentacle. If I run this powershell script on the server it works perfectly. If I run playbook with the powershell script it fails on the server. What could possibly be causing this? Permissions? Timing out?

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Greg DeKoenigsberg
On Wed, Feb 24, 2016 at 10:34 AM, Stephen Granger wrote: > Any chance there will be documentation for the api similar to Ansible > modules? (I'm looking for an AWS Lambda example using the 2.0 api after > seeing Jose article) > > I like the way things have been broken apart

[ansible-project] Create Multiple WMware VMs Through Ansible

2016-02-24 Thread Mark Matthews
Hi Is it at all possible to create multiple VMware VM's using an Ansible playbook? Giving each VM a unique name (server1, server2, server3) I can see anyway of doing this using the following playbooks - vsphere_guest: vcenter_hostname: vcenter.mydomain.local username: myuser

Re: [ansible-project] authorized_key module not working

2016-02-24 Thread Brian Coca
is sftp allowed on those machines? you might want to try setting scp_if_ssh to True in ansible.cfg if that is the case. The fact that it does not fail on directory creation but it does at the PUT is a good hint of that. -- Brian Coca -- You received this message because you are

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Mike Biancaniello
I have found that if you want to wrap the running of a playbook inside of a python script (so you can make the interface a bit more user friendly and translate cmdline args to --extra-vars, etc), the 2.0 API is much simpler. from ansible.cli.playbook import PlaybookCLI cliargs = {

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Brian Coca
It is 'on the list' to document it, but we also have many other things on that list that are much higher priority: documenting other plugins, migration path to 2.0, making plugins work under 1.9 AND 2.0, document testing, and in general bugfixes and features galore -- Brian Coca --

Re: [ansible-project] authorized_key module not working

2016-02-24 Thread chrono
That did it! Thank you! On Wednesday, February 24, 2016 at 9:38:22 AM UTC-5, Brian Coca wrote: > > is sftp allowed on those machines? you might want to try setting > scp_if_ssh to True in ansible.cfg if that is the case. > > The fact that it does not fail on directory creation but it does at

[ansible-project] ansible 1.9.4 task reported failed from running custom python module

2016-02-24 Thread Hongjun Ma
Hello, my own python module returned the following failure when running from ansible. {"msg": "Created profile", "changed": true, "ansible_facts": {"serial_number": .. "created": true}} FATAL: all hosts have already failed -- aborting PLAY RECAP

[ansible-project] Re: Powershell Script not working when using PLaybook

2016-02-24 Thread Mark Matthews
Hi Jon I had a look at the event viewer and saw that that it is getting an access is denied error (this happens for all commands in the powershell script): 2016-02-24 15:53:12.2675 1 FATAL System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005

[ansible-project] Re: ansible 1.9.4 task reported failed from running custom python module

2016-02-24 Thread Hongjun Ma
i figured out the issue. I added some print statements during python module troubleshooting and looks Ansible didn't like that. I commented out the print statements and ansible is happy now. On Wednesday, February 24, 2016 at 10:35:25 AM UTC-8, Hongjun Ma wrote: > > Hello, my own python

Re: [ansible-project] Re: how limit uri module retries output

2016-02-24 Thread Brian Coca
fixed via http://github.com/ansible/ansible/commit/e02b98274b60cdbc12ef4a4c74ae0f74207384e8 -- 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

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Dag Wieers
On Wed, 24 Feb 2016, Brian Coca wrote: Dag, yes please! We've been meaning to write that but have never had the time. Not sure how to proceed next, but let me quickly show what I did for the filetree plugin. Since we have a need to run the existing playbooks with v1.9.4, but also test new

Re: [ansible-project] include_vars in ansible 2.0

2016-02-24 Thread Brian Coca
it is not an issue with the module, but with first found, which always looks in files/ not in vars/ ​this should work:​ with_first_found: - ​"vars/ {{ ansible_os_family }}.yml" - " ​vars/​ default.yml" -- -- Brian Coca -- You received this message because you are subscribed

[ansible-project] Ansible 2.0.1.0 has been released

2016-02-24 Thread James Cammarata
Hi all, 2.0.1.0 has been released, and is now available. This release addresses several bugs present in 2.0, such as: * Improvements to the way no_log filters some output, which may have lead to some disclosure of secret variables when using the --diff option. * Lots of improvements to the

[ansible-project] Re: Ansible windows modules

2016-02-24 Thread Quang Truong
Hi Stavros, I think you're right on x64-Windows8.1-KB2934520-x64.msu. I tried to dumb the installation log and found access denied when running the web installation package. I think there is something wrong on my environment setting that cause about security issue, try with another

Re: [ansible-project] include_vars in ansible 2.0

2016-02-24 Thread Marcus Furlong
On Thursday, 25 February 2016 14:48:21 UTC+11, Brian Coca wrote: > > it is not an issue with the module, but with first found, which always > looks in files/ not in vars/ > > ​this should work:​ > > with_first_found: >- > ​"vars/ > {{ ansible_os_family }}.yml" >- " > ​vars/​ >

Re: [ansible-project] Re: group_vars produces error

2016-02-24 Thread Sascha Andres
I have. it seems related to [v2] 'Timeout (12s) waiting for privilege escalation prompt' when using with_items for commands that last longer than 12 seconds The fix does not seem to made it's way to 2.0.0.2 release -- You received this message

[ansible-project] Re: Ansible windows modules

2016-02-24 Thread Stavros
I'm using the following code for installing msi's, e.g.: $msi = @('D:\Temp\Pscx-3.2.0.msi', 'D:\Temp\notep.msi') foreach ($msifile in $msi) { Start-Process -FilePath "$env:systemroot\system32\msiexec.exe" -ArgumentList "/i `"$msifile`" /qn /passive" -Wait } Stavros -- You received this

[ansible-project] Re: Ansible windows modules

2016-02-24 Thread 'J Hawkesworth' via Ansible Project
Quang, I suggest you try running the installation as a user with Administrative privileges. You may also find you need to temporarily disable UAC prompting for Administrative users only, which on Server 2012 R2 can be achieved by modifying

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

2016-02-24 Thread Slim Slam
Thanks James. I'm looking forward to seeing it update today. (currently: 5pm CST) :-D J On Tuesday, February 23, 2016 at 2:54:28 PM UTC-6, James Cammarata wrote: > > Sorry for not seeing your response before. The release was held up a bit > by AnsibleFest, but we should be getting it out

[ansible-project] Re: Powershell Script not working when using PLaybook

2016-02-24 Thread Trond Hindenes
A few comments on this: The best way to troubleshoot stuff like this is not only to try and run the script locally, but also run it using a psremoting session from another machine. That will more closely mimic what Ansible is doing. If there is a problem with the script quitting too soon you

[ansible-project] nested_subelements plugin doesn't work with Ansible 2.1

2016-02-24 Thread Berkin Ozisikyilmaz
The plugin has been written by # (c) 2013, Serge van Ginderachter # # This file is part of Ansible It begins like this: import ansible.utils as utils import ansible.errors as errors class LookupModule(object): def __init__(self, basedir=None, **kwargs): self.basedir =

[ansible-project] Ansible sudo hangs after a few requests...

2016-02-24 Thread Jerry Thome
*Setup Requirements: *local user=goagent1 (ansible kicked off from GoCD), remote user=myadmin. myadmin is a sudoer. *Problem: *The playbook seems to stop after ~5 tasks have been executed. *Details: *I am running locally as goagent. We are using 'become' to gain sudo access which seems to

[ansible-project] git module fails to checkout a new branch when source and destination branch names differ but are the same commit

2016-02-24 Thread Steve R
I seem to have a problem where if two branches point to the same commit but have a different name the ansible git module may fail. I believe the reason is that when the module sees that the commits are the same between HEAD on the local repo, and the remote requested branch, it doesn't bother

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Dag Wieers
On Wed, 24 Feb 2016, Brian Coca wrote: It is 'on the list' to document it, but we also have many other things on that list that are much higher priority: documenting other plugins, migration path to 2.0, making plugins work under 1.9 AND 2.0, document testing, and in general bugfixes and

Re: [ansible-project] The new Python API is extremely complex.

2016-02-24 Thread Brian Coca
Dag, yes please! We've been meaning to write that but have never had the time. On Wed, Feb 24, 2016 at 6:45 PM, Dag Wieers wrote: > On Wed, 24 Feb 2016, Brian Coca wrote: > > It is 'on the list' to document it, but we also have many other things on >> that list that are much

Re: [ansible-project] Appending to fact provided by module, and use aggregated fact in module function

2016-02-24 Thread Brian Coca
Sorry, currently there is no way to append facts, they always overwrite. -- 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] Re: git module fails to checkout a new branch when source and destination branch names differ but are the same commit

2016-02-24 Thread Steve R
Sorry I meant to say this happens on Ansible 1.9.2 and 2.0.0. -- 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.