[ansible-project] Re: Ansible and vmware_guest

2017-10-17 Thread 'J Hawkesworth' via Ansible Project
>From what I have read, you need to specify a 'name' and 'vlan' parameter for each network interface you want configured in your clone, so maybe just add a - name: network2 vlan: some_vlan_id into to the 'networks' section? You don't mention what OS you are installing but something I

Re: [ansible-project] Re: Ansible and vmware_guest

2017-10-17 Thread Reza Issany
Thanks. But I already have name and vlan in network section. I'm not sure about my template. I'll check the network configuration on it. I'm trying to create Linux vms (centos). reza. Le 17 oct. 2017 09:07, "'J Hawkesworth' via Ansible Project" < ansible-project@googlegroups.com> a écrit : >

[ansible-project] Re: ansible vwmare_guest, cloning Windows Server 2012R2

2017-10-17 Thread 'J Hawkesworth' via Ansible Project
To follow up on this. Things I have found that help are: Set up your networking in your template as close as possible to how you want it in your cloned VMs. I got a lot further once I set the networking up in my template VM as static (I need my clones to use static IPs). Remove device drivers

Re: [ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread jean-yves
Hi, There's a loop indeed, but I thinks there's something wrong in your variable because it is looping with first iteration item.key ==> 'instance" second iteration item.key ==> 'attempts' third_iteration item.key ==> 'changed', fourth iteration item.key ==> 'failed' So it's more a bug in your

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread Mariano Obarrio Miles
Hi Sebastien, I try with a loop but the result it's the same. Only add one of both. Learn05 (.232.141) The loop: - name: DEBUG Show inventory_hostname debug: msg="inventory_hostname {{inventory_hostname}}" - name: Add_host with Loop add_host: name: "{{item.value.ipv4}}" groups:

Re: [ansible-project] Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread jean-yves
Hi, Ansible 2.5 is not stable as of now I would recommend to use 2.3.x or 2.4.y version to use in production... Anyway this is not the problem here. As written in documentation, add_host broke loop_play (in note section : This module bypasses the play host loop and only runs once for all

[ansible-project] Re: AWX Best Practices (Inventories and Workflows)

2017-10-17 Thread Bobby Brockway
Bump On Thursday, 12 October 2017 15:49:35 UTC+1, Bobby Brockway wrote: > > Hi all, > > I've been playing with AWX in a POC environment but I'm having trouble > working out the best way to lay out our inventories, jobs and workflows. > The Best Practices >

Re: [ansible-project] Re: AWX Best Practices (Inventories and Workflows)

2017-10-17 Thread Andrew Latham
AWX has a mailing list at AWX Project On Tue, Oct 17, 2017 at 7:20 AM, Bobby Brockway wrote: > Bump > > > On Thursday, 12 October 2017 15:49:35 UTC+1, Bobby Brockway wrote: >> >> Hi all, >> >> I've been playing with AWX in a POC

Re: [ansible-project] Re: AWX Best Practices (Inventories and Workflows)

2017-10-17 Thread Bobby Brockway
Ah didn't realise, thanks Andrew. On Tuesday, 17 October 2017 13:53:25 UTC+1, Andrew Latham wrote: > > AWX has a mailing list at AWX Project > > > On Tue, Oct 17, 2017 at 7:20 AM, Bobby Brockway > wrote: > >> Bump >> >> >> On Thursday, 12

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread Sebastien Desbois
Hello, For my part, I'm using the way described by JYL. - include_role: name: myrolewhoaddsininventory with_items: "{{ mylist }}" the add_host task is included amonfg other things in the role. And at the end, I get the in-memory inventory properly filed. Le mardi 17 octobre 2017

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread Mariano Obarrio Miles
Hi Sebastien, You have a role to create VMs and other to add_host to inventory? I try it and send you a feedback soon. Thxs! M. El martes, 17 de octubre de 2017, 14:57:28 (UTC+2), Sebastien Desbois escribió: > > Hello, > > For my part, I'm using the way described by JYL. > > -

[ansible-project] Re: Problems with VMWARE and In-Memory Inventory

2017-10-17 Thread Sebastien Desbois
Hello I use the same role to create the VM and add_host. This way, with the first item, it creates the VM and add it to the in-memory inventory. Then it loops and do the same with the second item. Etc... Unless you destroy your in-memory inventory at some point, it will be available and used

[ansible-project] ansible error on SLES 12

2017-10-17 Thread madhan0618
Followed the below steps to install ansible wget https://bootstrap.pypa.io/get-pip.py python get-pip.py #To resolve python.sh zypper in python-devel zypper in libopenssl-devel pip install ansible pip install paramiko PyYAML Jinja2 httplib2 six Now when i run ansible like below

[ansible-project] Ansible 2.3.3 RC2 is ready for testing

2017-10-17 Thread Toshio Kuratomi
Hi all, we're happy to announce that RC2 for 2.3.3 is now available for testing. How do you get it? -- The tar.gz of the release can be found here: https://releases.ansible.com/ansible/ansible-2.3.3.0-0.2.rc2.tar.gz SHA256:

Re: [ansible-project] How to use a Python expression instead of a Jinja expression in changed_when?

2017-10-17 Thread Eric
How do you escape single quotes? -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send

[ansible-project] with_items and increment

2017-10-17 Thread Parth Patel
I am trying to run this simple task where I want to increment counter for "{{ esb_name }}_ESB_?" like "ABC_ESB_01, ABC_ESB_02 .etc" until the loop is over. How do I do that ? I tried nested and other loops but was not able to do it. Any suggestions ? --- - hosts: fuseesbdomhosts[0]

[ansible-project] Is there a cleaner way to use json_query to filter an array based on the value of an attribute?

2017-10-17 Thread Behrang Saeedzadeh
Hi, The version of Ansible we are using does not support selectattr to filter a list based on attribute names. So I instead use something like this: set_fact: thing: '{{ (things | json_query("[?thing_name==''" + a_thing_name + "'']") | list)[0] }}' Is there a cleaner way to do this?