Re: [ansible-project] Re: YUM: Much slower in ansible than on the cli

2014-02-26 Thread Marc Trudel
Some feedback I tried a few things still to make it perform better, including mirror repositories, but the fact that repoquery is forced on the user is perhaps limiting... any ways to make that optional instead of using it if it is present? On Thursday, February 20, 2014 2:39:48 PM UTC+9, Mar

[ansible-project] Re: deploying jars

2014-02-26 Thread Adam Morris
On Wednesday, February 26, 2014 6:05:26 PM UTC-8, Mark Butler wrote: > > Hi team, > > i need to download and deploy some jars using Ansible from Jenkins. Some > of our jars with dependencies are large (150mb) so this is slow. > > Assuming that you can get them onto the Ansible server (use local_

[ansible-project] deploying jars

2014-02-26 Thread Mark Butler
Hi team, i need to download and deploy some jars using Ansible from Jenkins. Some of our jars with dependencies are large (150mb) so this is slow. Is there anyway i can check if and only download if the resource has changed? Or alternatively what's the best practice for dealing with this situati

Re: [ansible-project] Re: Ansible fails with "Authentication or permission failure" due to "Too many links" in $HOME/.ansible/tmp/

2014-02-26 Thread Michael DeHaan
Basically the "async" keyword in Ansible for very long running stuff. http://docs.ansible.com/playbooks_async.html The devel branch is pretty darn stable now if you want to try running an early copy (actually it usually is, but we may get more into refactoring/overhaul in the future, but that usu

Re: [ansible-project] Re: Ansible fails with "Authentication or permission failure" due to "Too many links" in $HOME/.ansible/tmp/

2014-02-26 Thread i iordanov
Hi Michael, On Wednesday, February 26, 2014 7:49:04 PM UTC-5, Michael DeHaan wrote: > > > Was just going to ask what version and you beat me to it :) > :) > > There was a problem with the copy module not removing tempfiles that was > recently fixed (Feb 4), though we haven't included this in

Re: [ansible-project] Re: Ansible fails with "Authentication or permission failure" due to "Too many links" in $HOME/.ansible/tmp/

2014-02-26 Thread Michael DeHaan
Was just going to ask what version and you beat me to it :) There was a problem with the copy module not removing tempfiles that was recently fixed (Feb 4), though we haven't included this in a release -- Ansible 1.5 is slated to be released by the end of this month. The above problem with copy,

[ansible-project] Re: Ansible fails with "Authentication or permission failure" due to "Too many links" in $HOME/.ansible/tmp/

2014-02-26 Thread i iordanov
For the record, I'm using Ansible 1.4.5 built with "make deb" after a "git checkout v1.4.5" in the repository. -- 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

[ansible-project] Ansible fails with "Authentication or permission failure" due to "Too many links" in $HOME/.ansible/tmp/

2014-02-26 Thread i iordanov
Here is a sample failure message: fatal: [u05] => Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on t he remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command w

Re: [ansible-project] Ansible Galaxy roles - distro - arch 64

2014-02-26 Thread bryan hunt
Yeah Paul, I like. I'll add it now. Good suggestion. Thanks, Bryan On 26 Feb 2014, at 16:59, Paul Durivage wrote: > If you so choose, you could add a task to the role to ensure the system is a > 64-bit system. > > - name: "Ensure system is x86_64" > fail: msg="Docker requires a 64bit system

[ansible-project] Re: Ansible XenServer VM Playbook & Guide Posted

2014-02-26 Thread Pavel Sakun
Hi Aaron. The link above gives 404, corrent one is http://sharknet.us/2013/12/13/276/ Pavel. On Wednesday, December 25, 2013 1:24:43 AM UTC+3, Aaron Hunter wrote: > > Hello, > > I just posted an in-depth guide to automating Xen VM creation and > provisioning using Ansible at > http://www.shark

Re: [ansible-project] Variable precedence: inventory versus host_vars

2014-02-26 Thread Jeremy Schulman
Hi, I ran across this same "not issue" thinking that my host_vars/x.yml would override the inventory file. I get the Ansible Zen approach, and now that I know the answer from MD above, I am A-OK. I think it would be *nice* if this information was covered in the Ansible docs specifically so fo

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Petr Sukharev
Solved by myself. Use trick with shell={{ variable | default('/bin/sh') }} value. Thanks a lot for help! -- 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

Re: [ansible-project] Ansible Galaxy roles - distro - arch 64

2014-02-26 Thread Paul Durivage
If you so choose, you could add a task to the role to ensure the system is a 64-bit system. - name: "Ensure system is x86_64" fail: msg="Docker requires a 64bit system architecture" when: "ansible_architecture != 'x86_64'" See the fail module: http://docs.ansible.com/fail_module.html On W

Re: [ansible-project] Why no variable substitution in top level includes?

2014-02-26 Thread anatoly techtonik
I still don't understand. There are different levels of variables, but how do they stacked and overriden? Is it like this? (I can't check right now) [globals] (-e) - variable overrides everything below if set [playbook] (vars section) - variable is accessible by includes [t

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Petr Sukharev
works like charm! One more little question - i have user variables like this: > user1: > > - { user: 'user1', shell: '/bin/sh' } > how i can change shell value in special host group to /bin/nologin for example? And keep it default value for other groups?... -- You received this message becau

Re: [ansible-project] generating multiple files from one template

2014-02-26 Thread Brian Coca
very easy: - template: src=sametemplate dest=/var/www/{{item}} with_items: - host1 - host2 and you can use 'item' as a key inside the template to write specific options to each. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To u

Re: [ansible-project] Ansible Galaxy roles - distro - arch 64

2014-02-26 Thread Michael DeHaan
I'd just mention it in the comments of now. On Wed, Feb 26, 2014 at 11:11 AM, bryan hunt wrote: > > > I created a (trivial) role to install Docker onto Ubuntu Precise, and > amended the meta/main.yml file appropriately. > > There is an issue though, this role only works on Ubuntu Precise 64bit.

[ansible-project] Ansible Galaxy roles - distro - arch 64

2014-02-26 Thread bryan hunt
I created a (trivial) role to install Docker onto Ubuntu Precise, and amended the meta/main.yml file appropriately. There is an issue though, this role only works on Ubuntu Precise 64bit. AFAIK, Docker do not supply 32 bit debs for their service. I can't figure out how to express this, is t

Re: [ansible-project] generating multiple files from one template

2014-02-26 Thread Michael DeHaan
You can easily put variables in your template that the template can key off of. Usage of things like "set_fact" or parameterized role arguments may be relevant here. On Wed, Feb 26, 2014 at 10:08 AM, Andy Altepeter wrote: > Greetings, > > I have a need to generate multiple configuration file

[ansible-project] generating multiple files from one template

2014-02-26 Thread Andy Altepeter
Greetings, I have a need to generate multiple configuration files on a single host from one template. Is this possible in ansible? Let's say I have a variable like: vars: configs: - port: 8080 directory: /var/www/host1 - port: 8081 directory: /var/www/host2 I need to g

Re: [ansible-project] How to use --extra-vars JSON to replace part of a complex variable data structure

2014-02-26 Thread Michael DeHaan
JSON is the correct format to define a hash there. In the first two examples you defined two seperate scalar variables with a "." in them. You can turn on hash merging behavior in ansible.cfg if you wish hash elements to blend together versus override. I'll warn you that not all places of the co

Re: [ansible-project] Regression after upgrade to 1.4.5

2014-02-26 Thread Michael DeHaan
There is no such code regression in Ansible and you are incorrect in this case to assume this is a bug or a change in the code. You likely have a crossed up install somehow. Try on a clean box and if you're still stuck, share a minimal playbook that uses debug and we can point it out. On Wed, F

Re: [ansible-project] Failed to access license information. GET returned status: 401

2014-02-26 Thread Michael DeHaan
Yep, please direct this over there. It's likely just a permissions issue on the license file. On Wed, Feb 26, 2014 at 5:57 AM, benno joy wrote: > Hi David, > > Could you please send across awx/tower related issue to > supp...@ansibleworks.com as this list is mainly for ansible core . > > Reg

[ansible-project] Regression after upgrade to 1.4.5

2014-02-26 Thread Miroslav Suchý
I upgrade to new version ... well Fedora 19 gave it to me after yum upgrade. So I went from ansible-1.4.3 to ansible-1.4.5 and I experience two regressions 1) I have this in playbook: tasks: - debug: msg="IP={{ int_ip.stdout }}" And now I'm getting: ERROR: debug is not a legal parameter

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Adam Morris
I should add that you might want to look at the best practices document http://docs.ansible.com/playbooks_best_practices.html which will give you a clear picture of how you could lay out your files. If you want the same users on all hosts in all groups then you might want to put them in group_

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Adam Morris
On Wednesday, February 26, 2014 1:05:33 AM UTC-8, Petr Sukharev wrote: > > Thanks for you reply, Adam! > I think, this solution is working like charm, but main reason for defined > users like variables - is keeping all information in separate file. It is > more simple for managing information a

Re: [ansible-project] Failed to access license information. GET returned status: 401

2014-02-26 Thread benno joy
Hi David, Could you please send across awx/tower related issue to supp...@ansibleworks.com as this list is mainly for ansible core . Regards, Benno On Wed, Feb 26, 2014 at 11:50 AM, David Chin wrote: > Hi guys, > > I keep on getting these messages when logging in to AWX (Ansible Tower). > *Fa

[ansible-project] Failed to access license information. GET returned status: 401

2014-02-26 Thread David Chin
Hi guys, I keep on getting these messages when logging in to AWX (Ansible Tower). *Failed to access license information. GET returned status: 401* After I dismissed the error, it keeps on prompting me to login again and again and AWX is basically not usable. Any idea how to troubleshoot this?

[ansible-project] Re: SSH users via ansible

2014-02-26 Thread Petr Sukharev
Thanks for you reply, Adam! I think, this solution is working like charm, but main reason for defined users like variables - is keeping all information in separate file. It is more simple for managing information and apply changes... For example, if i have 10 host groups and 40 users, and changin