Re: [ansible-project] Mix Tasks and roles: files folder

2014-05-06 Thread ProfHase
I am using ansible 1.5 . It seems inconsistent to me that the variable defined in the role (i.e. defined in roles/admin_users/vars/main. yml) is also available in the task while the files in the role file folder (i.e. roles/admin_users/files) are not found by the copy module Thanks It seems

Re: [ansible-project] Mix Tasks and roles: files folder

2014-05-06 Thread Michael DeHaan
This is working as designed. When you define a variable in a role, that role might be something like common and package variables that other roles might like to use. For instance a role could define production vs staging environment behavior, and a value like ntp_server could be used in

Re: [ansible-project] Mutiple Version Maintain in PlayBooks

2014-05-06 Thread Michael DeHaan
See http://docs.ansible.com/playbooks_roles.html#roles and the following example of passing values to parameterized roles: --- - hosts: webservers roles: - common - { role: foo_app_instance, dir: '/opt/a', port: 5000 } - { role: foo_app_instance, dir: '/opt/b', port: 5001 }

Re: [ansible-project] Re: why isn't stdout returned on this most basic of commands?

2014-05-06 Thread Andy Ingham
Michael -- Just created at github == https://github.com/ansible/ansible/issues/7299 Andy -- 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] Re: Need help organizing tasks/playbooks for multiple operating systems

2014-05-06 Thread Michael DeHaan
It’s not so much OCD as it is DISA STIG. The RHEL6 STIG rules explicitly state for specific services that if it’s not needed on a host it must be disabled/uninstalled. I did a small amount of consulting around STIG for a previous systems management app company -- so I know what you are talking

Re: [ansible-project] Reporting individual packages under apt and with_items

2014-05-06 Thread Michael DeHaan
I'm ok with the modules getting modifications to return this. Something like an array of { installed: [], upgraded: [], removed: [] } etc ? The yum module has a bit better output and we'd want to make strides to keep them the same while not breaking any existing playbooks

[ansible-project] debugging tip(s) requested (for lineinfile)

2014-05-06 Thread Gallagher Polyn
Hi, I'm attempting to boot and deploy with GCE all in one play (using Sharif Salah's deckhttps://speakerdeck.com/sharifsalah/google-compute-engine-and-ansibleand demo repo https://github.com/sharifsalah/ansible-examples as my basis.) I'm succeeding until... - name: insert iptables rule

Re: [ansible-project] delegate_to running on unexpected host

2014-05-06 Thread Scott Anderson
On Monday, May 5, 2014 9:46:18 PM UTC-4, Brian Coca wrote: delegate_to does work, I suspect your issues stem from the variable not being defined or being empty, delegate_to will fallback to localhost. Brian Coca Imagine that proper host was filled in with an actual IP in the log (I

[ansible-project] Weird problem with network reuse of TCP ports from apps started from ansible

2014-05-06 Thread Stephen John Smoogen
So we have been running into an issue in our ansible rollout that hasn't occurred before sometime in mid April. About that time we started getting conflicts with services reusing the 5099 fireball port if those processes were started from ansible. In the latest case, I set up a new hardware box

Re: [ansible-project] Re: Gem module doesn't update when gem_source set

2014-05-06 Thread Mike Jones
Confirmed bug still exists in 1.6 and filed ticket in github tracker. On Monday, May 5, 2014 8:45:45 PM UTC-7, Michael DeHaan wrote: If you believe you have an issue here with the current release (latest is 1.6 as of today), please make sure one is filed at github.com/ansible/ansible.

[ansible-project] Problem deploying with cloudformation module

2014-05-06 Thread Jon Burman
I'm trying to use the ansible cloudformation module to setup a EC2 instance. When I run it through the cloudformation ansible module I get the following error. TASK: [Create Cloud foundation Example] *** localhost REMOTE_MODULE cloudformation

[ansible-project] Re: delegate_to running on unexpected host

2014-05-06 Thread Scott Anderson
For extra special fun I made up an IP address and used it in delegate_to: - name: Copy override file for database information template: src=templates/user_data.json dest={{ aws_settings_override_file_path }} delegate_to: 34.142.33.2 (sp_devops)GoatRodeo:devops

Re: [ansible-project] Re: Gem module doesn't update when gem_source set

2014-05-06 Thread Michael DeHaan
Thanks! On Tue, May 6, 2014 at 1:59 PM, Mike Jones utilityn...@gmail.com wrote: Confirmed bug still exists in 1.6 and filed ticket in github tracker. On Monday, May 5, 2014 8:45:45 PM UTC-7, Michael DeHaan wrote: If you believe you have an issue here with the current release (latest is

Re: [ansible-project] Weird problem with network reuse of TCP ports from apps started from ansible

2014-05-06 Thread James Cammarata
Go ahead and open a github issue for this, and we'll see if we can reproduce it. Thanks! On Tue, May 6, 2014 at 12:43 PM, Stephen John Smoogen smo...@gmail.comwrote: So we have been running into an issue in our ansible rollout that hasn't occurred before sometime in mid April. About that

[ansible-project] user specific yml file

2014-05-06 Thread rob
Hi I have vars with system users defined: --- users: - username: user1 hash: hash1 uid: uid1 - username: user2 hash: hash2 uid: uid2 Additionally every user has his own set of tasks in the yml file to configure his own environment e.g. change .bashrc, .bash_aliases, .vimrc

Re: [ansible-project] Jinja Whitespace control

2014-05-06 Thread Brian Coca
ansible loads jinja2 with trim_blocks = true, you can use a per template header to override this, you can see an example in the template docs.​ https://docs.ansible.com/template_module.html -- You received this message because you are subscribed to the Google Groups Ansible Project group. To

Re: [ansible-project] Weird problem with network reuse of TCP ports from apps started from ansible

2014-05-06 Thread Michael DeHaan
We suspect this may be something needing to close file descriptors. (BTW, just curious, you said fireball, are you using the new accelerate mode or still calling fireball directly? I remember you guys had some EL hosts so couldn't do -c ssh yet since no Control Persist support just yet, though

Re: [ansible-project] Weird problem with network reuse of TCP ports from apps started from ansible

2014-05-06 Thread Stephen John Smoogen
On 6 May 2014 16:43, Michael DeHaan mich...@ansible.com wrote: We suspect this may be something needing to close file descriptors. (BTW, just curious, you said fireball, are you using the new accelerate mode or still calling fireball directly? I remember you guys had some EL hosts so

Re: [ansible-project] Nested looping with hash/dict so I can override values

2014-05-06 Thread David Reagan
So, I took a look at creating a plugin. I copied subelements.py, and modified it to return a dict. See https://gist.github.com/jerrac/8a16e0c1031df89621da I think it will do what I want, I've only done some basic testing. Anyone have any feedback? Should I modify the copyright? I'm pretty sure

[ansible-project] How do I know if pipelining is working

2014-05-06 Thread Jacob Weber
Hello. I just tried enabling ssh pipelining in Ansible 1.6, by doing this: - commenting out Defaults requiretty in the source and destination hosts - adding pipelining = True to /etc/ansible.cfg I timed a playbook with about 100 plays, a few times before and after, and it took around 1:05 each

[ansible-project] Re: How do I know if pipelining is working

2014-05-06 Thread Jacob Weber
commenting out Defaults requiretty in the source and destination hosts FYI, this refers to the sudoers file. I also tried Defaults !requiretty, and the speed was the same. On Tuesday, May 6, 2014 4:07:03 PM UTC-7, Jacob Weber wrote: Hello. I just tried enabling ssh pipelining in Ansible

Re: [ansible-project] Re: How do I know if pipelining is working

2014-05-06 Thread Michael DeHaan
So, pipelining mode is only usable if you are using the SSH connection type (-c ssh), so I'd first check to make sure you are running on a system where that is the default -- i.e. not Enterprise Linux (RHEL, CentOS, etc). You've mentioned you are using RHEL, so this has to be explicitly

Re: [ansible-project] Re: How do I know if pipelining is working

2014-05-06 Thread Jacob Weber
Makes sense. I'm not really too concerned about the speed, so I'll leave it alone. Thanks for the explanation. On Tuesday, May 6, 2014 5:04:13 PM UTC-7, Michael DeHaan wrote: So, pipelining mode is only usable if you are using the SSH connection type (-c ssh), so I'd first check to make