[ansible-project] Ansible 1.9.2 has been released

2015-06-25 Thread James Cammarata
Hi all, Ansible 1.9.2 final has been released and is now available. Ansible 1.9.2 addresses two security bugs, so we recommend users update as soon as possible: * Security fixes to check that hostnames match certificates with https urls (CVE-2015-3908) - get_url and uri modules - url and

Re: [ansible-project] Possible bug in 1.9.2 ec2

2015-06-25 Thread Brian Coca
this might be a bug, i fixed several issues with the sequence lookup in 1.9.2, confirmed that i see what you raised, i did not test for a count of 1, I'll add that to the basic tests. -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project

Re: [ansible-project] Re: ERROR! Invalid shell type specified (bash), or the plugin for that shell type is missing.

2015-06-25 Thread Brian Coca
Try this as a workaround, set ansible_shell_type=sh for all the hosts, if that works I'm pretty sure I can solve the issue. -- 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

[ansible-project] Playbook directory organisation

2015-06-25 Thread James Morgan
Hi, This has probably been covered before but I can't find any solutions. My project pulls in roles from other projects via Maven. This means that we can have company wide roles reused. This all works fine, all the roles are dropped into a subdirectory in roles and referenced in the

[ansible-project] Inventory and group_vars layout advice

2015-06-25 Thread ddffgpmfn
Seeking some best-practice advice about where to store variables within the following structure: * multiple inventory folders ./inventory/x, ./inventory/y, ./inventory/z * inside each inventory folder, combinations of dynamic and static inventory sources * inside each inventory folder,

Re: [ansible-project] Inventory and group_vars layout advice

2015-06-25 Thread Mark McCoy
Have you thought about using role default variables instead? If all environments have the same setting, this would be simpler. Role default variables can then be overridden for specific groups in the group vars file. On Jun 25, 2015 06:55, ddffgpmfn t...@aioue.net wrote: Seeking some

[ansible-project] Errant build problem

2015-06-25 Thread James Cammarata
Hi all, just wanted to make everyone aware that we had an errant build job accidentally release a pypi package with the 2.0.0 version. If you have installed this package, please remove it, as it corresponds to the (now deleted) git tag of v1_last. We've removed the package from PyPI, however it

[ansible-project] Escaping % signs?

2015-06-25 Thread Guy Matz
Hi! I've written a module and am bumping up against an issue when I try to include a percent sign in one of the parameters, e.g.: supervisor_prog: name: smlp-data user: smlp command: java blah-blah-blah environment: PATH='/usr/java/jdk1.8.0_11/bin:%(ENV_PATH)s' Notice the %

[ansible-project] Need for aptitude to perform apt upgrades?

2015-06-25 Thread Phyks
Hi, It seems that aptitude is needed by the apt module to handle apt upgrades. Is there any way to cut this dependency? Thanks -- Phyks -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group and stop receiving

[ansible-project] Problem installing Ansible Tower

2015-06-25 Thread Marc Bernier
Does not seem to be able to be installed on a Redhat 7.1 server. I keep getting this error : TASK: [packages_el | install yum repositories] failed: [localhost] =

Re: [ansible-project] playbook to install software on windows clients from linux control machine

2015-06-25 Thread priya . netrovert
To overcome this, I wrote a powershell script which will call Get-SCPFile cmdlet by Posh-SSH and was able to successfully copy the file from controlling node to windows clients. Is win_package module going to be with ansible version 1.9.2 and anyone when stable version 1.9.2 is going to be

Re: [ansible-project] Problem installing Ansible Tower

2015-06-25 Thread James Cammarata
Hi Marc, questions regarding Tower should be directed at supp...@ansible.com . Thanks! James Cammarata Director, Ansible Core Engineering github: jimi-c On Thu, Jun 25, 2015 at 10:51 AM, Marc Bernier bernier.m...@gmail.com wrote: Does not seem to be able to be installed on a Redhat 7.1

Re: [ansible-project] playbook to install software on windows clients from linux control machine

2015-06-25 Thread priya . netrovert
Does win_package do a copy similar to win_copy? It would be good if we have a win module which will copy binary files with bigger size from controlling machine to clients. This will be easier for people who do not want to setup any ftp. Thanks On Thursday, June 25, 2015 at 10:59:19 AM UTC-4,

[ansible-project] Is it allowed to embed Ansible into commercial products?

2015-06-25 Thread Andrew Pashkin
Would it be against spirit or letter of Ansible's license, if I embed it in commercial application? The application consists of multiple services that need to be deployed and that's for what Ansible supposed to be used. -- Kind regards, Andrew Pashkin. Skype: waves_in_fluids Cell phone: +7

[ansible-project] Accessing variables defined in group_vars/all from local mode

2015-06-25 Thread KN
Hello all, I'm unable to access the value of a variable defined in group_vars/all in a simple `local.yml' playbook. I have described my directory layout and the contents of the YAML files in detail here:

[ansible-project] Re: Escaping % signs?

2015-06-25 Thread Guy Matz
Ah! Narrowing it down, the problem is actually with the ConfigParser module . . . I have a supervisor config that has the line: environment: PATH='/usr/java/jdk1.8.0_11/bin:%(ENV_PATH)s' and ConfigParser chokes whenever it tries to process that line: from ConfigParser import SafeConfigParser

Re: [ansible-project] Inventory and group_vars layout advice

2015-06-25 Thread Hagai Kariti
I'd like to hear advices for this as well. I do have one idea that I don't like however. You should be able to use group_vars relative to your playbooks as well. So put a group_vars dir outside of your inventories, next to your playbooks, and that will be evaluated for all envs. On Thursday,

[ansible-project] Is the all group not at the same level as groups?

2015-06-25 Thread David Reagan
Ansible docs say: * extra vars (-e in the command line) always win * then comes connection variables defined in inventory (ansible_ssh_user, etc) * then comes most everything else (command line switches, vars in play, included vars, role vars, etc) * then comes the rest of the variables defined

[ansible-project] Re: Escaping % signs?

2015-06-25 Thread Guy Matz
I figured it out!! RawConfigParser does not support the magical interpolation behavior On Thu, Jun 25, 2015 at 11:11 AM, Guy Matz guym...@gmail.com wrote: Ah! Narrowing it down, the problem is actually with the ConfigParser module . . . I have a supervisor config that has the line:

Re: [ansible-project] Inventory and group_vars layout advice

2015-06-25 Thread ddffgpmfn
Thanks Hafai, Confirming that works, unbelievably. A group_vars/all.yml next to playbooks, as you say, is evaluated as well as in the inner group_vars. I'm warming to the idea of writing a vars plugin that is essentially just a pointer to a file somewhere. Advantage is that the target could be

[ansible-project] Parallel execution of local actions with multiple items

2015-06-25 Thread Baraa Basata
Given a need to launch multiple cloud resources via local action, such as the below, is there a way to parallelize the execution of the task? I think I'm looking for something like `--forks n`, except this is different in that there is only one host (localhost) involved in the play. --- -

[ansible-project] Re: Complex loop question.

2015-06-25 Thread yunano
Hi, You should use with_subelements like: - name: remove unmanaged file: path: ... state: absent with_subelements: - found.results - stdout_lines when: item.1 not in configuration_files Thanks. 2015年6月24日水曜日 18時26分26秒 UTC+9 Nico K.: Hi, I'm looping over a set of

[ansible-project] Parallel execution of local action with multiple items

2015-06-25 Thread Baraa Basata
Given a need to provision 2+ instances of a cloud resource, such as the below, is there a way to provision them in parallel? --- - hosts: localhost connection: local tasks: - local_action: module: rds name: {{ item.name }} ... with_items: rds_instances --

Re: [ansible-project] confused about | mandatory

2015-06-25 Thread Brian Coca
mandatory is only needed if error_on_undefined_vars=False (which was the default long ago) what version of ansible? os? python? -- 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

Re: [ansible-project] Re: Option to make No hosts matched a FATAL error?

2015-06-25 Thread Brian Coca
lets make this a configuration option, this used to be the case and many people asked for it to change into a warning, as default localhost entry meant you always have an inventory. -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project

Re: [ansible-project] Re: Option to make No hosts matched a FATAL error?

2015-06-25 Thread Brian Coca
scratch that ... this is different, i was referring to empty inventories, this is about plays not matching any host. -- 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

Re: [ansible-project] Variable as array/object key in playbook

2015-06-25 Thread Brian Coca
I think you want this: server: {{hostvars.localhost.rax_nfs.results[0].success[0].rax_addresses[network_label][0].addr}} -- 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

Re: [ansible-project] Substituting lists in playbook

2015-06-25 Thread Brian Coca
you can use the groups variable directly in your template, as it is a list, also you are stacking moustaches and that does not work!!! no {{ {{ }} }} , you only need one set {{ }}, anything inside you do not quote is var: {% for server in groups['zookeepers'] %} server.{{ hostvars[server][id]

Re: [ansible-project] Single playbook for docker and ec2

2015-06-25 Thread Brian Coca
yes, check the facts, there are several that indicate the virtualization type. -- 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

Re: [ansible-project] Vagrant and Private Repositories

2015-06-25 Thread Brian Coca
These are not really ansible questions, they are really ssh setup questions. i don't recommend copying private keys, I would either generate a new one and add that to stash. You can have multiple per user, or just create a readonly deployment user to do checkouts. Another option is to forward

Re: [ansible-project] Inventory and group_vars layout advice

2015-06-25 Thread Hagai Kariti
Problem with a vars plugin is that you'll have to specify it in each playbook. New idea: you could put another inventory script in your dir that evaluates your common file. On Fri, Jun 26, 2015, 02:25 ddffgpmfn t...@aioue.net wrote: Thanks Hafai, Confirming that works, unbelievably. A

[ansible-project] copy fails silently on remote host on small $HOME/.ansible/tmp

2015-06-25 Thread Torsten Reinhard
Hi, we are using Ansible 1.8.2, and we stumbled upon a problem after copying and unarchiving a (large) file: failed: [myhost.com] = {failed: true} msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed. msg: Failed to find handler to

[ansible-project] confused about | mandatory

2015-06-25 Thread Barry Kaplan
What is the scope to which |mandatory applies? It seems that debug is not one of them: vars: vi_tenant: {{ tenant | mandatory }} vi_plants: {{ plants | mandatory }} status: | Provisioning tenant security: env {{env}} tenant {{vi_tenant}}