[ansible-project] Re: ssh-agent with ansible.

2018-04-23 Thread feathers1664
Ok Digging a little deeper with paramiko, and it seems to be an issue with connecting to cisco switches running IOS 15.0 DEB [20180424-12:23:00.783] thr=1 paramiko.transport: starting thread (client mode): 0xd6192f10L DEB [20180424-12:23:00.784] thr=1 paramiko.transport: Local

[ansible-project] Re: Module failure when using anisble to control cisco router

2018-04-23 Thread cral
Hi, I try remove connection: local but still got the same error. > > -- 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] Module failure when using anisble to control cisco router

2018-04-23 Thread Christer Hemgren
Hi Try to remove 'connection: local' as you use network_cli. Regards Christer -- 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

Re: [ansible-project] How to launch multiple EC2 hosts using ansible

2018-04-23 Thread Love
That worked, thank you Will. On Monday, April 23, 2018 at 3:09:43 AM UTC-7, Will McDonald wrote: > > Your ec2_instance_tag 'name:webserver' is being evaluated as a string > because there's no space, it needs to be a YAML dictionary. > > If you read the docs on the module (ansible-doc ec2), they

Re: [ansible-project] ansible inventory file not found when running from subfolder

2018-04-23 Thread Brian Coca
use -v on the runs that don't work, you probably have another ansible.cfg there overriding the one you've shown. -- -- 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

Re: [ansible-project] Re: Extract value from json result

2018-04-23 Thread Brian Coca
from_json ... to_json converts data into a string. -- -- 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

[ansible-project] Re: Regardin_Win_get_url

2018-04-23 Thread Jordan Borean
You are trying to connect to the host 172.31.7.231 with SSH whereas we only support WinRM with Windows. Make sure you set *ansible_connection: winrm* in your inventory so it runs over WinRM. Thanks Jordan -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] Re: ERROR! plaintext: 401 Unauthorized

2018-04-23 Thread Jordan Borean
You are connecting over HTTP (port 5985) using basic auth. This combo does not support message encryption so everything is in plaintext and the WinRM service is rejecting it. You either need to - Use an auth that supports message encryption, NTLM, Kerberos or CredSSP, set

Re: [ansible-project] How to pass 'become' to 'include_*' in ansible2.5

2018-04-23 Thread Kai Stian Olstad
On 23.04.2018 18:27, ProfHase wrote: Hi all, apparently attributes on include tasks are not propagated to the tasks anymore in 2.5 For some reasons i need dynamic includes. 1. How would I pass `become` to `include_role` The usecase: When I develop a role, it is sometimes based on

[ansible-project] Regardin_Win_get_url

2018-04-23 Thread kavin . kumaran
Hi All, I am trying to get the files form windows machine using ftp.If I run the playbook i was getting the below mentioned errors.Can anyone help me regarding this error. FAILED! => {"changed": false, "module_stderr": "Shared connection to 172.31.7.231 closed.\r\n", "module_stdout":

[ansible-project] Working with pairs of servers

2018-04-23 Thread 'Matthew Scully' via Ansible Project
Hello there, I've got the general gist of Ansible now, however for this project I'm working on... we have the following scenario: I want a single playbook, to work for an unlimited amount of hosts within two groups, a webserver group and a database group, one web server should be married up

[ansible-project] How to pass 'become' to 'include_*' in ansible2.5

2018-04-23 Thread ProfHase
Hi all, apparently attributes on include tasks are not propagated to the tasks anymore in 2.5 For some reasons i need dynamic includes. >1. How would I pass `become` to `include_role` > > The usecase: When I develop a role, it is sometimes based on dynamic facts. In my role I often use

[ansible-project] Ansible deploy VMware a Windows VM Template

2018-04-23 Thread Xavier Sanchez
Hi experts, One question please, Actually I working and testing Ansible for deploy a specified VM in a VMware infrastructure (Windows Server 2016) and I heve a problem when this VM is deployed and started, I not have idea automate "press Next" and specify the Administrator password. I

[ansible-project] Script/How to export from ec2_group_facts and import into ec2_group? AWS

2018-04-23 Thread Simon Tyler
Dear Citizens of Ansible Project, I may have a need to export large numbers of security groups from VPCs and import them into new VPCs; basically I want to clone all the security groups from one VPC, and import them to another. Naturally, I thought of doing this using Ansible. I have found

[ansible-project] Script/How to export from ec2_group_facts and import into ec2_group? AWS

2018-04-23 Thread Simon Tyler
Dear Citizens of Ansible Project, I may have a need to export large numbers of security groups from VPCs and import them into new VPCs; basically I want to clone all the security groups from one VPC, and import them to another. Naturally, I thought of doing this using Ansible. I have found

[ansible-project] service provisioning using ansible - system design

2018-04-23 Thread Colm Ennis
i am starting to use ansible to provision end user voice services for my company. this involves making several several file changes (blockinfile) and restarting several processes if needed all based on different extra-vars inputs per service. we only need a few playbooks and our inventory

Re: [ansible-project] Re: map()...What am I doing wrong here?

2018-04-23 Thread Gregory Mirsky
Thank you so much! This worked perfectly! ok: [localhost] => { "subnet_facts.results | map(attribute='subnets') | flatten | map(attribute='id') | list": [ "subnet-fd6bfa95", "subnet-6ad01910", "subnet-7c8bb031" ] } On Sun, Apr 22, 2018 at 10:25 PM,

[ansible-project] Re: ERROR! plaintext: 401 Unauthorized

2018-04-23 Thread subbireddy gajulapalli
On Monday, April 23, 2018 at 5:20:04 PM UTC+5:30, subbireddy gajulapalli wrote: > > ubuntu@ip-172-31-9-47:~/ckp$ ansible all -m win_ping -vvv > Using /home/ubuntu/ckp/ansible.cfg as config file > <172.31.46.234> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT > 5985 TO 172.31.46.234

[ansible-project] ERROR! plaintext: 401 Unauthorized

2018-04-23 Thread subbireddy gajulapalli
ubuntu@ip-172-31-9-47:~/ckp$ ansible all -m win_ping -vvv Using /home/ubuntu/ckp/ansible.cfg as config file <172.31.46.234> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5985 TO 172.31.46.234 172.31.46.234 | FAILED! => { "failed": true, "msg": "ERROR! plaintext: 401

[ansible-project] Re: Extract value from json result

2018-04-23 Thread Antonios Dimtsoudis
Not really, you get an response object with the key "json" So something like: '{{ response["json"] | to_json }}.key' but this doesn't work.. Am Montag, 23. April 2018 11:03:20 UTC+2 schrieb Antonios Dimtsoudis: > > Hi, > > > i have a problem with using the ansible json-filter. > --> >

Re: [ansible-project] How to launch multiple EC2 hosts using ansible

2018-04-23 Thread Will McDonald
Your ec2_instance_tag 'name:webserver' is being evaluated as a string because there's no space, it needs to be a YAML dictionary. If you read the docs on the module (ansible-doc ec2), they state: - instance_tags > *a hash/dictionary of tags* to add to the new instance or for >

Re: [ansible-project] Extract value from json result

2018-04-23 Thread Karl Auer
This might be way off base, but isn't the key just "{{ response.key }}" ? Regards, K. On Mon, Apr 23, 2018 at 7:03 PM, Antonios Dimtsoudis < antonios.dimtsou...@gmx.de> wrote: > Hi, > > > i have a problem with using the ansible json-filter. > -->

[ansible-project] Extract value from json result

2018-04-23 Thread Antonios Dimtsoudis
Hi, i have a problem with using the ansible json-filter. --> http://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#json-query-filter from an api-request i get a json response with a token. '{{ response["json"] | to_json }}' results in: {"name": "ltmetric", "key":

Re: [ansible-project] Ansible template loop with iteritems

2018-04-23 Thread Vlad
On Monday, 23 April 2018 09:50:04 UTC+3, Kai Stian Olstad wrote: > > On 20.04.2018 16:01, Vlad wrote: > > On Friday, 20 April 2018 16:44:21 UTC+3, Vlad wrote: > >> > > > > I have another question, after I applied the changes, now every line in > > the > > files contains a new empty line. It

[ansible-project] Re: Ansible Azure azure_rm_networkinterface question regarding security_group_name

2018-04-23 Thread f . floimair . commend
Am Freitag, 20. April 2018 19:44:07 UTC+2 schrieb Jeff_R: > > Trying to build a NIC without creating or using a NSG...this doesn't seem > possible. If we leave the value out it creates one using defaults. We've > tried using "security_group_name: None" also "security_group: no" and of >

Re: [ansible-project] Ansible template loop with iteritems

2018-04-23 Thread Kai Stian Olstad
On 20.04.2018 16:01, Vlad wrote: On Friday, 20 April 2018 16:44:21 UTC+3, Vlad wrote: I have another question, after I applied the changes, now every line in the files contains a new empty line. It is possible to be removed ? {% for key, value in vars[item].iteritems()| sort %} {{ key }}=