Re: [ansible-project] post data using ansible uri module always get error "bad request" but it works for Postman

2017-07-20 Thread Dick Visser
You're sure it's using POST? Alternatively try supplying a yaml data structure for body and let 'body_format: json' create the json. Can it be that the request requires additional http headers to be set? On Thu, 20 Jul 2017 at 13:03, Megan Liu wrote: > HI > > I really

[ansible-project] Loop using with_items twice

2017-07-20 Thread Anfield
What is the correct way to use with_Items to loop over two files? The playbook is failing at the 2nd task Getting an error - TASK [Create users from vars users] fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid

Re: [ansible-project] Question - Which shell ansible uses ?

2017-07-20 Thread Brian Coca
wrong timeout, that is 'timeout while ssh is attempting to connect before we consider the attempt failed' not timeout of 'idle controlpersist' -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Re: Ansible 2.3.2 RC1 is available for testing

2017-07-20 Thread Michael Lee
Hello: I did recent build, and found out it caused the issue with asa_command https://github.com/ansible/ansible/issues/27083 is that possible I could use yum install for 2.3.1? I would like to install the ansible into docker, so I could avoid this kind of issue in the future. Best, ~Mike

Re: [ansible-project] elb_target_group module no longer in use?

2017-07-20 Thread Trevor Ma
Thank you for the quick reply. It is much appreciated On Thursday, July 20, 2017 at 12:50:52 PM UTC-7, branko wrote: > > On Thu, 20 Jul 2017 08:48:48 -0700 (PDT) > Trevor Ma wrote: > > > Hi I'm new here and have been doing some ansible. I need to register > > an instance

[ansible-project] Matching hosts in AWS (or any dynamic inventory?)

2017-07-20 Thread Guy Matz
Hello! I would like to match hosts in AWS with something like (passing env as an extravar): hosts: tag_Function_www:_tag_Environment=env I'm currently using this which works: hosts: "tag_Function_www:_Environment_{{ env|default('test') }}" but wondering if there's a better way. Any thoughts

Re: [ansible-project] Ansible Tower Api extra_vars containing url address

2017-07-20 Thread marta . albecka1
I'm using Trial version for now, and as far as I understand access to most of the support ways to Tower is just for paid users.So i thought I may find some help here. W dniu czwartek, 20 lipca 2017 17:02:37 UTC+2 użytkownik Andrew Latham napisał: > > For tower questions and support please

[ansible-project] Cisco Access Point Automation management

2017-07-20 Thread nizar kacem
Hi, is Ansible suitable for Cisco Access point automation (especially big number of 1040 series). In other words, is it possible to remote change configurations, access lists.. Rgds -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] elb_target_group module no longer in use?

2017-07-20 Thread Branko Majic
On Thu, 20 Jul 2017 08:48:48 -0700 (PDT) Trevor Ma wrote: > Hi I'm new here and have been doing some ansible. I need to register > an instance to a target group and ansible is great as it has a module > for it. However, nothing I do works. The funny thing is that the >

Re: [ansible-project] Ask about "side by side" loop

2017-07-20 Thread Branko Majic
On Thu, 20 Jul 2017 08:04:54 -0700 (PDT) aldyth maharsha wrote: > Hi All > > I have question and I'm newbie in ansible...I try to clone multiple > vm from template in vmware with each of them have different ip > address. > > I can clone 20 vm from template successfully but

[ansible-project] Chaning user's own password after validating the current password

2017-07-20 Thread islhamid
Hi I am looking for a playbook that will change user's password only if the playbook is ran by the user. In other words can you help in writing a playbook that will first verify user's current password then if the current password is correct then let the user to change his existing password.

Re: [ansible-project] Ansible 2.3.2 RC3 is available for testing

2017-07-20 Thread Jean-Yves LENHOF
Le 20/07/2017 à 17:51, Michael Ströder a écrit : > James Cammarata wrote: >> Hi all, we're happy to announce that Ansible 2.3.2 RC3 is available for >> testing. >> [..] >> The tar.gz of the release can be found here: >> >> http://releases.ansible.com/ansible/ansible-2.3.2.0-0.3.rc3.tar.gz >

Re: [ansible-project] Ansible 2.3.2 RC3 is available for testing

2017-07-20 Thread Andrew Latham
Confirmed http://releases.ansible.com/ansible/ansible-2.3.2.0-0.2.rc2.tar.gz is the latest there. Use https://github.com/ansible/ansible/archive/v2.3.2.0-0.3.rc3.tar.gz in the interm. On Thu, Jul 20, 2017 at 10:51 AM, Michael Ströder wrote: > James Cammarata wrote: > > Hi

Re: [ansible-project] Ansible 2.3.2 RC3 is available for testing

2017-07-20 Thread Michael Ströder
James Cammarata wrote: > Hi all, we're happy to announce that Ansible 2.3.2 RC3 is available for > testing. > [..] > The tar.gz of the release can be found here: > > http://releases.ansible.com/ansible/ansible-2.3.2.0-0.3.rc3.tar.gz File seems to be missing. $ wget

[ansible-project] elb_target_group module no longer in use?

2017-07-20 Thread Trevor Ma
Hi I'm new here and have been doing some ansible. I need to register an instance to a target group and ansible is great as it has a module for it. However, nothing I do works. The funny thing is that the module reference page for it doesn't even exist anymore. Does that just mean the module is

[ansible-project] Ansible 2.3.2 RC3 is available for testing

2017-07-20 Thread James Cammarata
Hi all, we're happy to announce that Ansible 2.3.2 RC3 is available for testing. A list of fixes can be found in the CHANGELOG here: https://github.com/ansible/ansible/blob/v2.3.2.0-0.3.rc3/CHANGELOG.md#bugfixes How do you get it?

[ansible-project] Ask about "side by side" loop

2017-07-20 Thread aldyth maharsha
Hi All I have question and I'm newbie in ansible...I try to clone multiple vm from template in vmware with each of them have different ip address..Example my script below --- - hosts: localhost connection: local vars: vcenter: vcenter01 datastore: datastore-1 datacenter:

Re: [ansible-project] Ansible Tower Api extra_vars containing url address

2017-07-20 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Thu, Jul 20, 2017 at 9:48 AM, wrote: > I'm using Ansible Towers' API to run some templates and I need

[ansible-project] Ansible Tower Api extra_vars containing url address

2017-07-20 Thread marta . albecka1
I'm using Ansible Towers' API to run some templates and I need to pass a dictionary of vars. I use extra_vars field while launching to do so, but one of the values is url address, which contains colon and question mark, because of which the whole dictionary can't be parsed properly. I was

Re: [ansible-project] Question - Which shell ansible uses ?

2017-07-20 Thread Luvpreet Singh
http://docs.ansible.com/ansible/latest/intro_configuration.html#timeout This says that the default timeout is 10 seconds. So, it means after every 10 seconds it makes a new connection ? What if some task is running and the connection times out ? What will happen then ? I am sorry If I am

Re: [ansible-project] Read a text file over https address into variable

2017-07-20 Thread Brian Coca
Or if you don't need any of the 'advanced' features of the uri module" - set_fact: version:"'{{lookup('url', 'https://storage.googleapis.com/kubernetes-release/release/stable.txt, split_lilnes=False')}}" --- Brian Coca -- You received this message because you are subscribed to

[ansible-project] Re: problem with pythonpath and ansible_python_interpreter

2017-07-20 Thread Josu Vilda
I think It should not change the execution path, right? El jueves, 20 de julio de 2017, 16:04:16 (UTC+2), Josu Vilda escribió: > > []# ansible-playbook -e "ansible_python_interpreter=/usr/bin/python" -vvv > test-Sonan3.yml > Using /etc/ansible/ansible.cfg as config file > > PLAYBOOK:

[ansible-project] problem with pythonpath and ansible_python_interpreter

2017-07-20 Thread Josu Vilda
[]# ansible-playbook -e "ansible_python_interpreter=/usr/bin/python" -vvv test-Sonan3.yml Using /etc/ansible/ansible.cfg as config file PLAYBOOK: test-Sonan3.yml ** 1 plays in test-Sonan3.yml PLAY [fac1apprep]

Re: [ansible-project] Re: Ansible raw module cisco error

2017-07-20 Thread Brian Coca
Have you tried using paramiko as the connection plugin? Many of these appliances don't have a 'standard' ssh service and the OpenSSH client (most common one installed) can have issues with it. Paramiko is a python ssh implementation and is a lot more forgiving with some of these appliances. --

Re: [ansible-project] Question - Which shell ansible uses ?

2017-07-20 Thread Brian Coca
Depends ... but if using defaults (ssh with control persist enabled) you should have the persistent connection still at task2 for both hosts ... unless the time between tasks is greater than the connection timeout (60s) ... which should only happen if you are processing a LOT of hosts at a time.

[ansible-project] Why is the following play failing ?

2017-07-20 Thread 'Gavin McKee' via Ansible Project
Hi Guys, I'd expect the following to work, I issue the show run snmp | inc host | inc traps command. I get the returned values , now I just want to loop through the returned configuration lines and send them back to the router with no in front of them. It seems to generate the proper

Re: [ansible-project] Question - Which shell ansible uses ?

2017-07-20 Thread Luvpreet Singh
Thank you. ANother Scenario, If I am running 10 tasks on 2 hosts, It will do first task on host 1 and then on host 2 then second task on host 1 and then on host 2, .. . . So, here also the connection persists to both the hosts? OR does it firstly connect to host 1, runs task 1 and then

Re: [ansible-project] Question - Which shell ansible uses ?

2017-07-20 Thread Brian Coca
1) It is configurable, but by default it should be /bin/sh 2) Logs in 10 times, which does not mean it connects 10 times as the connection itself can be persistent even if the login is not -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups

[ansible-project] Question - Which shell ansible uses ?

2017-07-20 Thread Luvpreet Singh
When ansible logs in to the remote systems, which shell does it uses ? I am asking this because of this question here, https://askubuntu.com/questions/937354/track-logins-made-via-non-interactive-shells?noredirect=1#comment1486323_937354 Please tell me how can I do what is asked in this

[ansible-project] post data using ansible uri module always get error "bad request" but it works for Postman

2017-07-20 Thread Megan Liu
HI I really need help on Ansible URI module . I am not sure whether it is a bug or not. I have the following playbook and when I run it and I always get error "bad request, "Parameter \"ip_address\" is required". But I have provided it when I sent the request.Please help me . - hosts:

[ansible-project] Re: how to update list of dicts in playbook?

2017-07-20 Thread Mathias Ettinger
Did you try http://docs.ansible.com/ansible/latest/playbooks_filters.html#combining-hashes-dictionaries ? Le mardi 18 juillet 2017 15:11:17 UTC+2, Riccardo Murri a écrit : > > Hello, > > I would like to write a playbook that does the following: > > 1. Read a list of source URLs + other

[ansible-project] get gs_access_key and gs_secret_key in gc_storage module

2017-07-20 Thread Eka Cahya Pratama
Hi I'm trying to download non public file in google cloud bucket using gc_storage module but I can't get the gs_access_key and gs_secret_key required by gc_storage module to operate. *How I can get gs_access_key and gs_secret_key in google cloud?* My Setting looks like this : name: Pull app

[ansible-project] Re: Ansible raw module cisco error

2017-07-20 Thread lei wang
hi i have used the raw module ""show vlan brief" also works fine too, but i have some h3c switch the raw modules does not work fine do you have any ideas ? 在 2017年7月3日星期一 UTC+8下午8:51:51,David Zheng写道: > > I have issue with issue command via raw module against cisco device > > > ansible r1

[ansible-project] FQDN in playbook but not in inventory file - skipping: no hosts matched

2017-07-20 Thread Listing
Hi all, When specifying an host in the playbook itself but not in the inventory file, I get the message 'skipping: no hosts matched.' When I pass the host via: ansible-playbook playbook.yml -i hostname, All is just working fine. But why is Ansible unable to just pick up this host defined in