Re: [ansible-project] Ansible execution workflow

2017-02-10 Thread DanyC
Brian, the info is gold mine, where would you think it might fit in the docs? (i'd love to see this added and maybe extended. coming from Salt land this info does help big time) cheers On Friday, 10 February 2017 03:13:13 UTC, Brian Coca wrote: > > Nothing up 2 date, but here is a quick

Re: [ansible-project] How can I iterate over a dictionary in a task?

2017-02-10 Thread ZillaYT
Let me as a different question. What If I want to show ALL the files in a debug task, like this - debug: msg="Key = {{ item.key }} values = {{ item.value }}" with_dict: "{{ war_files }}" I want to see an output like this "msg" : "Key = server1 value = file1.war" "msg" : "Key = server1 value

Re: [ansible-project] How can I iterate over a dictionary in a task?

2017-02-10 Thread Kai Stian Olstad
On 10. feb. 2017 22:22, ZillaYT wrote: Say I have the following dictionary? war_files: server1: - file1.war - file2.war server2: - file1.war - file2.war - file3.war Now I want to iterate over this, say a get_url task: - name: Get the files depending on server name get_url:

Re: [ansible-project] How to use Ansible playbook loops to create multiple specific VMware guests on multiple free ESXi hosts using vsphere_guest module.

2017-02-10 Thread Kai Stian Olstad
On 10. feb. 2017 10:45, Alex Lien wrote: I have tried to use with_dict with guests variables, hoping to loop through an arbitrary pre-defined set of ESXi hosts and guests list. But I am getting error: fatal: [esxi1]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value,

[ansible-project] How can I iterate over a dictionary in a task?

2017-02-10 Thread ZillaYT
Say I have the following dictionary? war_files: server1: - file1.war - file2.war server2: - file1.war - file2.war - file3.war Now I want to iterate over this, say a get_url task: - name: Get the files depending on server name get_url: src=http://some_host/{{ what to put here

[ansible-project] Re: creating multiple ec2 instances with different tag names

2017-02-10 Thread ns273520
Hi Eric , Did you find solution for you problem .Even i am facing same issue. On Friday, May 27, 2016 at 11:36:55 AM UTC-4, Eric S wrote: > > What's the best way to create multiple ec2 instances with all different > name tags. > > So say I do a count=3 and tag each one but i want each of the

[ansible-project] Pull mode best practices and tooling?

2017-02-10 Thread Danny
Hi, I'm testing out Ansible and although I see ansible-pull mentioned in a lot of different resources, it looks pretty bare-bones (which I guess is kind of the point). I'm wondering what people's experience has been like running it in production. Has anyone built additional tooling to do things

[ansible-project] How to use Ansible playbook loops to create multiple specific VMware guests on multiple free ESXi hosts using vsphere_guest module.

2017-02-10 Thread Alex Lien
I am running ansible version 2.2.0.0. I have several free ESXi hosts. I would like to create multiple specific guests on each of the free ESXi hosts. I have tried to use with_dict with guests variables, hoping to loop through an arbitrary pre-defined set of ESXi hosts and guests list. But I

[ansible-project] My domain proxy requires user name and password, How to configure it in Ansible Play

2017-02-10 Thread Dwarika Prasad
Hi, My domain proxy requires user name and password, How to configure it in Ansible Play I have configured the proxy in my playbook as below - * vars:* *proxy_env:* * http_proxy: webproxy.mydomain.com:8080* But I can't find how to configure the User name and Password for proxy server

[ansible-project] Re: Ansible and Proxy Authentication

2017-02-10 Thread Dwarika Prasad
Hi , It looks like it was the username and password asked by your api hosted at https://my.remotesite.com/api/v1 . What if the proxy server http://user:p%4...@proxy.corporate.com

[ansible-project] Cpu/ram config for ansilbe host when deploy on hundreds of nodes

2017-02-10 Thread ying chen
Hi guys, I have a cluster of hundreds of nodes on cloud, and have a dedicated VM for ansible. I wonder what kind of cpu/memory should be prepared for ansible host. Shall it depend on number of nodes or playbook content? There is some useful link, however, my question would be is there

[ansible-project] Re: Parallel deployment issue

2017-02-10 Thread ying chen
@oMgSufod I have similar question since I want to setup a cluster of hundreds of VM on cloud land. And there is a dedicated VM installed with ansible. Have you got some conclusion at last? Or is there any best practice on cpu/memory configuration which depends on number of nodes in cluster?

Re: [ansible-project] Re: Output Failed even if command gets executed successfully

2017-02-10 Thread DHAVAL JAISWAL
It works !! On Fri, Feb 10, 2017 at 12:12 AM, Johannes Kastl wrote: > On 09.02.17 19:36 DHAVAL JAISWAL wrote: > > I want to use the failed_when in following ad-hoc command to ignore > > the error. Is there any other alternative can be handle in ad hoc > > command. > > > >

Re: [ansible-project] How to control access with sudo and FreeIPA

2017-02-10 Thread Brian Coca
My favorites are cron, at and incron combined with unix ACLs and groups to restrict the different keys to each environment. But any job scheduler should work, you just need to make sure it meets your requirements, Tower just happens to pay my salary. -- Brian Coca -- You received this

Re: [ansible-project] vault and git do not mix

2017-02-10 Thread Dave Cottlehuber
On Tue, 31 Jan 2017, at 22:35, Florin Andrei wrote: > I can't be the only one having this problem: > > We're using vault files to store sensitive info (such as passwords or > private keys). Vault files, along with Ansible playbooks, roles, > inventories, etc are checked into GitHub. I'm using

Re: [ansible-project] How to control access with sudo and FreeIPA

2017-02-10 Thread Johannes Kastl
On 10.02.17 04:33 Brian Coca wrote: > Ansible itself does not have this built in, though there are many > ways to enforce this using other tools to execute it. Out of interest, which are those? Johannes -- You received this message because you are subscribed to the Google Groups "Ansible