Re: [ansible-project] Re: Valid play parameters/attributes list

2017-03-10 Thread Brian Coca
I brought it up with core, we will probably discuss in public IRC meeting next week. -- 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 a

[ansible-project] Re: Valid play parameters/attributes list

2017-03-10 Thread Keith Gunderson
Thank you. Any other suggestions (or not) for highlighting or simplifying the data presentation for this? Is directive the choice for naming this? I could add an issue if would help. Ideally I could post a fix soon after :) On Friday, March 10, 2017 at 7:38:49 AM UTC-6, Keith Gunderson wro

[ansible-project] Ansible Jump thru Bastion host

2017-03-10 Thread rajeev
Hello All, In my environment, Ansible server (A) does not have trust access to its clients. I have another host (B), which allows trust access(using keys) to all hosts in the environment. Host B has root trusted for entire environment. I can access any other host by running SUDO from my ID.(e

Re: [ansible-project] Cisco Router Configuration - match when description is Conditional Check Failed

2017-03-10 Thread Kai Stian Olstad
On 10. mars 2017 22:08, Roger Perkin wrote: Thanks, tried that but it still skips the conditional check. After checking the variable output I see that the output.results[item.0].stdout_lines contains a list of lists so you need to use output.results[item.0].stdout_lines.0 -- Kai Stian Olstad

Re: [ansible-project] Cisco Router Configuration - match when description is Conditional Check Failed

2017-03-10 Thread Roger Perkin
Thanks, tried that but it still skips the conditional check. On Friday, March 10, 2017 at 3:02:49 PM UTC, Kai Stian Olstad wrote: > > On 09. mars 2017 20:26, Roger Perkin wrote: > > The play works fine up until the last point. > > > > - block: > > - name: write config to interface >

Re: [ansible-project] Ansible Windows become_user per task?

2017-03-10 Thread Bob Tanner
Is there a PR or repository I can follow so I know when the Kerberos auth stuff is available in devel branch? > On Mar 2, 2017, at 5:36 PM, Matt Davis wrote: > > Also, there's a bug right now that's preventing become from working under > NTLM and Kerberos auth (fails with "Access is denied"),

[ansible-project] Re: Ansible on Windows host with two FQDNs

2017-03-10 Thread cupcake
Is the second domain "setup" either in AD as an alternate UPN suffix or via a trust relationship with the forest? If it was, it would likely work. Also, what auth are you using; local acct, domain acct; ntlm, kerberos, etc. -cupcake On Thursday, March 9, 2017 at 3:01:10 AM UTC-5, MKPhil wrote:

[ansible-project] dynamically referencing groups in playbooks and templates

2017-03-10 Thread jerry
Hi, Looks like I am jumping into the deep end on making Ansible work for us. We have a large set of legacy apps that require more than the simple instances. I am trying to use Ansible in a single point of truth model to generate some complex configs. The idea of this is that any piece of inform

[ansible-project] Ansible integration openstack gives 400 error

2017-03-10 Thread balubhai555
Hello Team, Ansible integrates with OpenStack instance creation gave 400 error. I didn't understand what is happening here. I have installed openstack along with all python based dependencies. I am using CentOS VM. I have admin-opensource.sh and all the required environment variables set fin

Re: [ansible-project] Load variables and include

2017-03-10 Thread Vinicius Leal
Tks Kai! -- 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 email to ansible-project@go

Re: [ansible-project] Valid play parameters/attributes list

2017-03-10 Thread Brian Coca
I prefer directives, others prefer command/keywords/attributes ... we might just need to sit down a create a 'project default name' for these -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this gro

Re: [ansible-project] Ansible copy file on remote machines on different location.

2017-03-10 Thread Kai Stian Olstad
On 03. mars 2017 10:33, niraj pandey wrote: How can I copy a file from machine A to machine B and machine C on different location. ie: On machine A I have file abc and I want to copy it on the /tmp area of machine B and /opt area of machine C. I tried this so far: *My inventory file:* [we

Re: [ansible-project] Load variables and include

2017-03-10 Thread Kai Stian Olstad
On 10. mars 2017 04:36, Vinicius Leal wrote: Hi guys i saw the following example: - include: wordpress.yml vars: wp_user: timmy ssh_keys: - keys/one.txt - keys/two.txt But when we have a large list of vars is it possible to do something like: - inclu

Re: [ansible-project] Valid play parameters/attributes list

2017-03-10 Thread Kai Stian Olstad
On 09. mars 2017 20:53, Keith Gunderson wrote: Please direct me to a listing of valid play attributes. Also, what is the preferred term for these, attributes or parameters? I've wondered this before and thought it must be an oversight in the docs. My current issue is related to putting a "whe

Re: [ansible-project] Cisco Router Configuration - match when description is Conditional Check Failed

2017-03-10 Thread Kai Stian Olstad
On 09. mars 2017 20:26, Roger Perkin wrote: The play works fine up until the last point. - block: - name: write config to interface with_indexed_items: " {{ my_list }} " ios_config: lines: description CHANGED parents: GigabitEthernet{{ item.1 }} provider

[ansible-project] Re: win_lineinfile does not create new file

2017-03-10 Thread cupcake
The user account is a local admin account with perm to the c:\temp folder. Error is: fatal: [winserver1.foo.com]: FAILED! => { "changed": false, "failed": true, "invocation": { "module_name": "win_lineinfile" }, "msg": "Destination c:\\temp\\ansible-windows_base.log

Re: [ansible-project] conda install in playbook

2017-03-10 Thread Kai Stian Olstad
On 09. mars 2017 18:38, dynaguy wrote: 4. Install the above packages: /opt/anaconda/bin/conda install /tmp/conda/*.bz2 -p /opt/anaconda Now I am trying to do this in Ansible. I succeeded on step 1 to 3, but failed on step 4. My playbook is: - name: Install additional Anaconda packages comm

Re: [ansible-project] with_item with none existing variable

2017-03-10 Thread Kai Stian Olstad
On 09. mars 2017 16:45, Christian Iuga wrote: i don't known how to try write my with_items condition : with_items: "{{ file|default([]) }}" : is skipping but not work on normal condition (without the --tags ) with_items: "{{ file|default([]).results }}" : template error while templating string

[ansible-project] Network Modules - dealing with Interactive prompts

2017-03-10 Thread jb795333
Hello, What is the best approach to dealing with interactive commands. I am attempting to use ansible to download a software file to a switch using a "copy scp://admin@1.1.1.1/sw/software_file flash:software_file". I have attempted to store the response to a variable and send another task with

Re: [ansible-project] Experience with very large inventories

2017-03-10 Thread Mauricio Tavares
Isn't there a way to to renice and parallelize the tasks? On Thu, Mar 9, 2017 at 7:51 AM, wrote: > Hi Guys, > > I have a very large dynamic inventory with ~ 6000 hosts. > > Does anyone have any experience with playbook runs across this many hosts? > I'm running into issues (frequent and long CPU

[ansible-project] Re: New To Ansible getting PLAY RECAP too quickly

2017-03-10 Thread okcjj
USER ERROR (namely me) Turns out to be a typo in the /etc/ansible/hosts files. On Friday, March 10, 2017 at 7:38:49 AM UTC-6, ok...@outlook.com wrote: > > I just started a new job and am replacing a SysEng that left before I > could get a proper turnover. > > I am new to Ansible, but have a

[ansible-project] Re: Ansible upgrades for Routers

2017-03-10 Thread Anas Tarsha
Abhinav, I wrote an Ansible playbook the other day to automate the upgrade of Cisco IOS routers. See the link below. Ansible by default launches 5 parallel connections but you can bump up the number easily to speed up the process if you have many routers. http://anastarsha.com/automating-cisco

[ansible-project] Valid play parameters/attributes list

2017-03-10 Thread Keith Gunderson
Please direct me to a listing of valid play attributes. Also, what is the preferred term for these, attributes or parameters? I've wondered this before and thought it must be an oversight in the docs. My current issue is related to putting a "when" attribute at the play level and receiving t

[ansible-project] Single-tenant application deployment to AWS

2017-03-10 Thread Timo Carl
All, I am scratching my head over this question for a while now, but can't seem to find a good answer. However this should be a pretty common question/concern. Maybe someone can tell me how they solved this: 1. We have a packaged software that we deploy with the customer as well as host for th

[ansible-project] New To Ansible getting PLAY RECAP too quickly

2017-03-10 Thread okcjj
I just started a new job and am replacing a SysEng that left before I could get a proper turnover. I am new to Ansible, but have a need to use one of his old playbooks. When I run the playbook, I am getting a DeprecationWarning (which seems generic, but I thought I would mention it.) Then

[ansible-project] ANsible Opestack integration give 400 error.

2017-03-10 Thread balubhai555
Hello Team, I am trying to do integration of Ansible with OpenStack. I got the below error. So please help me to solve this error. error: TASK [launch an instance] ** fatal: [localhost]: FAILED! => {"changed": false, "extra_data": null, "

[ansible-project] Cisco Router Configuration - match when description is Conditional Check Failed

2017-03-10 Thread Roger Perkin
I have written this play to run over a Cisco Router- then create a list of interfaces and the idea is to only apply a config to an interface based on the value or not of the descrption. The play works fine up until the last point. - block: - name: write config to interface with_in

[ansible-project] Re: Dealing with Inventory File Proliferation

2017-03-10 Thread jerry
Could you move the common things to vars within the group so that all the host has for vars is the things that change? jerry On Thursday, March 9, 2017 at 12:01:10 AM UTC-8, David Lane wrote: > > Hi, > > I've inherited a complex deployment system which is steadily getting more > complex. This is

[ansible-project] Re: How to read the --limit command line option

2017-03-10 Thread dan
Hi Marco, Not sure you can get the raw limit string, but there is this: {{ ansible_play_hosts }} If you are after list of target hosts for your play, after your limit has been resolved. Thanks - Dan. On Thursday, March 9, 2017 at 8:01:10 AM UTC, Marco Buttu wrote: > > Hi all, I would like to

[ansible-project] Experience with very large inventories

2017-03-10 Thread dan
Hi Guys, I have a very large dynamic inventory with ~ 6000 hosts. Does anyone have any experience with playbook runs across this many hosts? I'm running into issues (frequent and long CPU spikes, significant memory usage, oom kills, etc) when running very simple playbooks across all of my hos

[ansible-project] with_item with none existing variable

2017-03-10 Thread Christian Iuga
Hi, I'm trying to deal with non existing variable when i use --tags (so lot of task are skipped) I have read many time the "http://docs.ansible.com/ansible/playbooks_conditionals.html#loops-and-conditionals";, specially this part : If you need to skip the whole task depending on the loop

[ansible-project] Load variables and include

2017-03-10 Thread Vinicius Leal
Hi guys i saw the following example: - include: wordpress.yml vars: wp_user: timmy ssh_keys: - keys/one.txt - keys/two.txt But when we have a large list of vars is it possible to do something like: - include: wordpress.yml var_file: vars/var1.ym

[ansible-project] conda install in playbook

2017-03-10 Thread dynaguy
Hi, We have few python applications need to be installed on Ubuntu 16.04. Before using Ansible, I need to: 1. Download Anaconda2-4.0.0-Linux-x86_64.sh 2. Install Anaconda in path /opt/anaconda bash Anaconda2-4.0.0-Linux-x86_64.sh -b -p /opt/anaconda 3. Get conda packages, save them in /tmp/anaco

[ansible-project] Ansible integration with OpenStack gave 400 error.

2017-03-10 Thread balubhai555
Hello Team, I got 400 error. While integrating Ansible with OpenStack. I could not understand what the error is. Please help me and correct my Playbook to rectify the error. Error: *fatal: [localhost]: FAILED! => {"changed": false, "extra_data": null, "failed": true, "msg": "Error fetching

[ansible-project] Re: Roles, vars, defaults, and pre_tasks.

2017-03-10 Thread Simon Wydooghe
Hey Dan, It seems you have two spaces in front of the variable, I'm not sure if that poses a problem, but maybe try putting it like this: --- doreboots: true ... On Thursday, March 9, 2017 at 9:01:10 AM UTC+1, Dan Linder wrote: > > I'm trying to split up a large playbook into roles and it's g