Re: [ansible-project] Re: FreeBSD support

2014-06-09 Thread Fred
here we go: https://github.com/ansible/ansible/issues/7701 :) On Friday, June 6, 2014 2:38:03 PM UTC+2, Michael DeHaan wrote: Please file a ticket in github so we can remember to update the docs. Thanks! On Thu, Jun 5, 2014 at 6:03 AM, Fred frederi...@gmail.com javascript: wrote: The

Re: [ansible-project] Ansible RPM version

2014-06-09 Thread C. Morgan Hamill
Excerpts from James Cammarata's message of 2014-06-07 21:14:41 -0400: We are planning on doing this at some point in the (hopefully near) future, for both yum and apt. Not entirely on-topic, but it's a thing of mine: Thank you all *so much* for having functioning distribution packages from a

Re: [ansible-project] How to debug/log message when writing Ansible Module?

2014-06-09 Thread James Cammarata
This is more of a topic for ansible-devel, but to answer your question you can use the hacking/test-module script to run your module. At that point, you can either use print statements or epdb to debug your code, since it's running locally. If you only want to test your module remotely (ie. a

Re: [ansible-project] Testing file upload with uri?

2014-06-09 Thread Adrián López Tejedor
I want to make the same (upload a release to github API with uri module). I have seen an example posting the contents of a file: - uri: url=https://your.jira.example.com/rest/api/2/issue/ method=POST user=your_username password=your_pass body={{ lookup('file','issue.json') }}

[ansible-project] ImportError from third party modules

2014-06-09 Thread Nitin Kumar
Hi, I am using mac. I can notice for different module it takes two path. either it takes from '/Library/Python/2.7/site-packages or '/System/Library/Frameworks/Python.framework/Versions/2.7/lib import jinja2 jinja2 module 'jinja2' from

Re: [ansible-project] Confused about variable precedence

2014-06-09 Thread James Cammarata
You should not be using vars files from inside roles as vars_files entries. If you want easily overridden variables put them in defaults/main.yml and then override them either via role parameters or inventory variables (like host_vars and group_vars). On Sun, Jun 8, 2014 at 10:22 PM, Greg

Re: [ansible-project] ansible_ssh_private_key and IdentitiesOnly

2014-06-09 Thread Michael DeHaan
ansible_ssh_args is leveragable here to pass additional arguments correct? Also this is configurable in ansible.cfg. On Sat, Jun 7, 2014 at 11:34 AM, Brent Langston brent...@brentley.net wrote: I see your logic, but I think this world break a use case I have in my environment where a bot

Re: [ansible-project] Git module: don't pull when the clone is already up-to-date.

2014-06-09 Thread Michael DeHaan
I've tried using the commit hash as argument for version, but it doesn't work: it has the same effect of version=master. By same effect you mean it does the pull every time, rather than it checks out master, I'd assume? :) I'd like to see the -v output in that case. (Also note, in regard to

[ansible-project] Re: Git module: don't pull when the clone is already up-to-date.

2014-06-09 Thread Greg Hurrell
You could rename your development settings.py to settings.py.sample, continue to keep it under version control, and add settings.py itself to your .gitignore. This is what Rails does with things like database.yml, which may contain passwords. On Friday, June 6, 2014 1:27:00 PM UTC-7, parnigot

Re: [ansible-project] Confused about variable precedence

2014-06-09 Thread Greg Hurrell
Thanks James. I've re-jigged it as you describe and things are working nicely. -Greg On Monday, June 9, 2014 7:29:19 AM UTC-7, James Cammarata wrote: You should not be using vars files from inside roles as vars_files entries. If you want easily overridden variables put them in

Re: [ansible-project] Reusing inventory config

2014-06-09 Thread Dick Davies
Ah, mine are all lumped in together, like this: ansible-mystack:$ tree -L 1 . ├── Vagrantfile ├── ansible.cfg ├── group_vars ├── preprod_hosts ├── prod_hosts ├── roles ├── site.yml └── vagrant_hosts Are you talking about having a group_vars per inventory then? Trying to figure out how that would

[ansible-project] Re: invalid output was: [sudo via ansible, key=xfucmmnngaakrzojuosuatbjpbtjsqvc] password:

2014-06-09 Thread Richard Shaw
So, I've double checked things, I can't see any reason why the first play completes successfully and hits node m7b as defined in vagrant_hosts but the second play hits 127.0.0.1 and m7b. It should be a repeat of the first play. On Friday, June 6, 2014 6:27:13 PM UTC+1, Richard Shaw wrote:

Re: [ansible-project] Testing file upload with uri?

2014-06-09 Thread Guy Matz
That 'file:///' part is there so that the uri module can be notified that the body data is actually in a file and should be read in from disk . . . I don't really like that because it seems a little too magical. I prefer either amending the current file lookup plugin to read binary data if the

Re: [ansible-project] ansible_ssh_private_key and IdentitiesOnly

2014-06-09 Thread Jesse Keating
ansible_ssh_args does not appear to be a config value used by Ansible. [ssh_connection] ssh_args that is read, and looking at the source, it appears the environment ANSIBLE_SSH_ARGS is read by the ssh connection plugin. I'll try to play around and see if I can get that manipulated /in the

Re: [ansible-project] How to debug/log message when writing Ansible Module?

2014-06-09 Thread Jaime Gago
You might also want to read this post http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible J. On Monday, June 9, 2014 7:24:27 AM UTC-7, James Cammarata wrote: This is more of a topic for ansible-devel, but to answer your question you can use the hacking/test-module

Re: [ansible-project] ImportError from third party modules

2014-06-09 Thread Michael DeHaan
I do not have these problems on my Mac but it seems like you might have installed a custom Python and have installed some other things with pip from the main python? On Mon, Jun 9, 2014 at 4:53 AM, Nitin Kumar nitin.n...@gmail.com wrote: Hi, I am using mac. I can notice for different

Re: [ansible-project] ansible_ssh_private_key and IdentitiesOnly

2014-06-09 Thread Michael DeHaan
Per IRC, I'm open to that being a thing. On Mon, Jun 9, 2014 at 1:04 PM, Jesse Keating jkeat...@j2solutions.net wrote: ansible_ssh_args does not appear to be a config value used by Ansible. [ssh_connection] ssh_args that is read, and looking at the source, it appears the environment

Re: [ansible-project] ansible_ssh_private_key and IdentitiesOnly

2014-06-09 Thread Brent Langston
If there is value in this change of behavior, then cool. I have some other work-arounds in mind that shouldn't be a big deal. Brent On Mon, Jun 9, 2014 at 12:53 PM, Michael DeHaan mich...@ansible.com wrote: Per IRC, I'm open to that being a thing. On Mon, Jun 9, 2014 at

Re: [ansible-project] Testing file upload with uri?

2014-06-09 Thread Michael DeHaan
Ok, yes. The proposal seems like it should be to make the uri module take an optional file parameter, so the lookup plugin doesn't have to use the content parameter. This will prevent the need to transfer the file in the arguments, which could get ungainly for large files. --Michael On Mon,

[ansible-project] Populating an EC2 Security Group rules (using ec2_group modules) with IPs (Pingdom probe servers) gathered dynamically at playbook runtime

2014-06-09 Thread Jaime Gago
Hey there, I'm trying to write a playbook that gets the latest Pingdom probe servers IPs and add updates an EC2 Security groups rules with those IPs, but I'm failing are iterating the IPs in the rule and only the latest IPs is added (I'm replacing instead of appending). I opened an ticket on

[ansible-project] Ansible 1.6.3 has been released

2014-06-09 Thread James Cammarata
Ansible 1.6.3 has been released, which addresses a few bugs: * Corrects a regression where handlers were run across all hosts, not just those that triggered the handler. * Corrects a regression in the order of variable merging done by the internal runner code. * Fixed two bugs related to symlinks

[ansible-project] Request to improve RDS module to use boto rds2

2014-06-09 Thread iain wright
Hi folks, The goal was to provision an rds instance using ansible, which was easy enough using this module: http://docs.ansible.com/rds_module.html Unfortunately this module doesn't have the option to allow the RDS to pass in publicly_accessible and ec2 defaults making it publicly accessible