[ansible-project] Timeline to automate 1k+ servers

2017-09-08 Thread Adam
Hi all - Given a production environment with slightly more than 1000 VMs, across four geographically dispersed datacenters, how long would you allocate for a moderately paced (non-aggressive timeline) to implement ansible? I know this is very open ended. Over the past year, we've implemented

[ansible-project] how to join two json data structure to perform a join operation

2017-09-08 Thread Chris7444
Hi I am very new with ansible and I am struggling to solve the following "problem" I have two json inputs a list of "locations" (you can think them as stores). For each "location"I have the name and the unique ID and a list of "parts" . For each item, I have an array which tells me in

Re: [ansible-project] BigIP_Pool monitor template not found

2017-09-08 Thread Sean G.
Thanks for the response. I wound up fixing it by fixing my syntax: name: "{{((item[0], item[1],'_80_POOL') | join )| upper }}" was what I needed for the with_nested. - Sean On Tuesday, September 5, 2017 at 9:37:11 PM UTC-4, Tim Rupp wrote: > > Sean, try the module found in the

Re: [ansible-project] Running tasks in parallel in a playbook

2017-09-08 Thread Dick Davies
http://docs.ansible.com/ansible/latest/playbooks_loops.html#looping-over-a-list-with-an-index On 7 September 2017 at 19:14, Giovanni Gaglione wrote: > I basically need the index of the current hostname, but I can't find a way. > {{

Re: [ansible-project] Best practice for cluster nodes

2017-09-08 Thread Dick Davies
Have you seen the serial: argument to plays? http://docs.ansible.com/ansible/latest/playbooks_delegation.html#rolling-update-batch-size That's intended for working on a 'chunk' of N servers in a given group at once. On 6 September 2017 at 13:00, Cev Ing wrote: > I have

Re: [ansible-project] Running simple ad hoc commands via script module not working

2017-09-08 Thread Anfield
No specific requirement. I just wanted to bundle up some ad hoc commands and run them via script module. You are correct. I just recently setup that 2nd vm and didnt have ansible installed. Fixed that. Now the command runs but doesnt actually create the file, even though the output reports

Re: [ansible-project] Running simple ad hoc commands via script module not working

2017-09-08 Thread Jean-Yves LENHOF
Le 08/09/2017 à 18:22, Anfield a écrit : > I have a playbook and a script file which contains a couple of simple > ad hoc commands, but it is not working. > > I have 2 VMs on my desktop which are linked up via custom host-only > 10.10.x.x network. Connection is working, other playbooks work fine

[ansible-project] Running simple ad hoc commands via script module not working

2017-09-08 Thread Anfield
I have a playbook and a script file which contains a couple of simple ad hoc commands, but it is not working. I have 2 VMs on my desktop which are linked up via custom host-only 10.10.x.x network. Connection is working, other playbooks work fine etc. Playbook - --- - hosts: 10.10.0.4

[ansible-project] Re: Multiple tomcats and wait for app to start

2017-09-08 Thread 'J Hawkesworth' via Ansible Project
Here's how we wait for some of our tomcat apps to start up: - name: check every 3 seconds for 40 attempts if tomcat is up and ready to serve the healthcheck page uri: url: 'http://{{ inventory_hostname }}/app/healthcheck.jsp' return_content: yes timeout: 2 delegate_to: localhost

[ansible-project] Multiple tomcats and wait for app to start

2017-09-08 Thread Narahari 'n' Savitha
Friends: Thank you in advance for your time and attention. I am writing a playbook do the following on 6 tomcat servers. a. start tomcat b. wait for the app to come up on http://localhost:8080/tellMyVersion/version.jsp c. complete the play run after the above steps. I can start tomcat which

[ansible-project] Re: Raise Exception("Cannot import pyOpenSSL")

2017-09-08 Thread Jordan Borean
Hey The package pyOpenSSL is used by the requests-credssp package. Even if you are not using CredSSP it will try and load the library if it is there and fail if it doesn't exist. There is a newer version of requests-credssp that doesn't fail outright if you aren't using credssp auth so try pip

[ansible-project] Re: Raise Exception("Cannot import pyOpenSSL")

2017-09-08 Thread Karthik Bhat
If you are on Ubuntu: sudo apt-get install libffi-dev pip install cryptography Good luck! On Thursday, March 16, 2017 at 9:20:56 PM UTC+5:30, tperrone wrote: > > might want to run with -v to get winrm info as well; what auth are you > doing. > > I saw a similar issue and when i tried to

[ansible-project] Re: How to get item by item from the item.stdout so you can execute a command for each item on the item.stdout.

2017-09-08 Thread Carlos María Cornejo Crespo
Hi folks, Just in case this help someone else out - name: Retrieve existing vm's vars: _vm_iaas_username: "{{ [vm_iaas_username, data.vm_iaas_username, 'oneadmin']|reject('undefined')| first }}" shell: "onevm list | grep {{ _vm_iaas_username }} | awk 'BEGIN {FS=\" \"}{print $1}'"

Re: [ansible-project] How do I get the Ansible plugin to work with Jenkins?

2017-09-08 Thread 'J Hawkesworth' via Ansible Project
You can export ANSIBLE_FORCE_COLOR=TRUE if you have AnsiColor plugin installed in your jenkins you will see the colours in the Console output of your jobs. Jon On Friday, September 8, 2017 at 9:13:54 AM UTC+1, Dave Cottlehuber wrote: > > On Sat, 2 Sep 2017, at 06:17, manne shiva kumar wrote: >

Re: [ansible-project] How do I get the Ansible plugin to work with Jenkins?

2017-09-08 Thread Dave Cottlehuber
On Sat, 2 Sep 2017, at 06:17, manne shiva kumar wrote: > Hi Kiran, > > Am having the same issue.. could you please help me in resolving this.. > > On Thursday, February 4, 2016 at 3:02:04 PM UTC+5:30, Javier Palacios > wrote: > > > > With the setup you describe, you have basically two

[ansible-project] Re: Q: Obscure standard variables?

2017-09-08 Thread Sieds Pallas
A colleague of mine explained that these variables are created when the inventory is read. You can get to see those with: ansible -m debug -a "var=vars" This "vars" appears to be undocumented. HTH Op woensdag 6 september 2017 09:34:48 UTC+2 schreef Sieds Pallas: > Hi Tom, > I suspected that

Re: [ansible-project] Ansible host variable access

2017-09-08 Thread parwinderjit singh
Thanks for the help Mr Kai. I really appreciat  On Fri, Sep 8, 2017 at 11:38 AM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 08. sep. 2017 05:59, parwinderjit singh wrote: > >> My host file is >> >> [splunk-head] >> parv-vm-01 ansible_ssh_host=10.48.21.99

Re: [ansible-project] Ansible host variable access

2017-09-08 Thread Kai Stian Olstad
On 08. sep. 2017 05:59, parwinderjit singh wrote: My host file is [splunk-head] parv-vm-01 ansible_ssh_host=10.48.21.99 host_fqdn=parv-vm-01 [splunk-indexer] parv-vm-02 ansible_ssh_host=10.48.21.94 host_fqdn1=parv-vm-02 parv-vm-03 ansible_ssh_host=10.48.21.96 host_fqdn=parv-vm-03 parv-vm-04