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

2018-04-22 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 > course

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

2018-04-22 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 }}=

Re: [ansible-project] SID to username?

2018-04-22 Thread Bob Tanner
> On Apr 23, 2018, at 12:35 AM, Jordan Borean wrote: > > Ansible has the full power of PowerShell available at hand I should have been more specific in my question. Meant native to ansible. I’ll jump to powershell. -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: SID to username?

2018-04-22 Thread Jordan Borean
Ansible has the full power of PowerShell available at hand, just find out how to do it there and then use win_shell to execute the task. A quick Google search brings up a few pages on how this can be done in PowerShell, the one I find easiest to use is https://www.morgantechspace.com/2015/09/co

Re: [ansible-project] Ansible Tower Installation Error

2018-04-22 Thread pi co
Yeah, problem is permission. I was thought it would unnecessary while I'm running with root. Thanks On Saturday, April 21, 2018 at 10:01:39 PM UTC+6:30, Benny Kusman wrote: > > IOError: [Errno 13] Permission denied: > '/usr/lib/python2.7/site-packages/sshuttle-0.78.4-py2.7.egg/EGG-INFO/entry_poi

[ansible-project] SID to username?

2018-04-22 Thread bob
Is there a way to get the username from the SID with ansible? -- 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

[ansible-project] ssh-agent with ansible.

2018-04-22 Thread feathers1664
So, learning Ansible - and following the notes http://docs.ansible.com/ansible/latest/network/getting_started/first_playbook.html However, I don't want to use userid/passwd information but ssh_keyfiles instead. I can ssh to my switch using ssh_keyfiles, however, ansible idoesn't want to work

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

2018-04-22 Thread Saikrishna
Hi Will, Updated changes but see an error, could you please let me know what is missing? Inserted code for your reference. fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument instance_tags is of type and we were unable to convert to dict: dictionary requested, could not parse JSON

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

2018-04-22 Thread cral
Hi Ansible, I am a newbie on Ansible, Last week when I was trying to use Ansible to send command to my router Cisco 3725 in GNS3 from my miniPC (CentOS 7 64 bits, Ansible version 2.5). It keeps failing with the following issue. 192.168.1.10 (my miniPC) 192.168.1.9 (my router) run pl

[ansible-project] Re: Error while trying to ping a WIN 2016

2018-04-22 Thread Jordan Borean
It really does sound like DNS is the issue, the problem is due to an underlying library not being able to establish the connection. You can try and just setup a raw connection with openssl to verify the host is resolvable and the HTTPS stack is working on the Windows side. To do this run, open

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

2018-04-22 Thread flowerysong
On Sunday, April 22, 2018 at 7:30:15 PM UTC-4, Gregory Mirsky wrote: > > I've been trying to extract the values for subnet_id from the dictionary > subnet_facts but keep getting undefined (3 times instead of the values) as > a return value. I should be getting [subnet-fd6bfa95, subnet-7c8bb031,

[ansible-project] Error while trying to ping a WIN 2016

2018-04-22 Thread Selva Kumar
Hi Team, I'm running Ansible 2.4.3.0 on a Ubuntu server. While trying to access a Windows 2016 server, getting below error. The DNS is working fine. Can someone help me in fixing this? ansible_host=XXX.XXX.XX | UNREACHABLE! => { "changed": false, "msg": "ssl: HTTPSConnectionPool(host='ans

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

2018-04-22 Thread cral
Hi Ansible, I am a newbie on Ansible, Last week when I was trying to use Ansible to send command to my router Cisco 3725 in GNS3 from my miniPC (CentOS 7, Ansible version 2.5). It keeps failing with the following issue. 192.168.1.10 (my miniPC) 192.168.1.9 (my router) run playbook

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

2018-04-22 Thread Gregory Mirsky
I've been trying to extract the values for subnet_id from the dictionary subnet_facts but keep getting undefined (3 times instead of the values) as a return value. I should be getting [subnet-fd6bfa95, subnet-7c8bb031, subnet-7c8bb031] Any ideas? Below is the local host testbed playbook i've b

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

2018-04-22 Thread Will McDonald
I think this is because you've defined the desired count in your vars but not actually in the invocation of the ec2 module. Something like this should work as you expect: - name: create webserver instances hosts: localhost connection: local gather_facts: false vars: ec2_instance_coun

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

2018-04-22 Thread Love
Dear Experts, How to launch multiple EC2 instances using ansible? I want to create an environment in AWS using below playbook but I see only one instance is being created when I execute below playbook. Could you please help with missing code/syntax here? Note: I'm using free account wit