[ansible-project] "SSLHandshake: Unsupported curveid: 29" with win_get_url

2017-11-17 Thread Jean Jordaan
Hi all We're trying to get a file from a server in a playbook: - win_get_url: url: https://some.domain.com/test.txt dest: D:\test.txt url_username: x url_password: x skip_certificate_validation: yes validate_certs: no use_proxy: no

Re: [ansible-project] replace module: how to replace all matching files

2017-11-17 Thread Andrei Baban
thanks! I'll research this a bit more, as I still don't see a clear way yet on how to condition the second loop to run only on a subset of properties read from the variable file; but the loop_control is a good start. On Wednesday, November 15, 2017 at 5:33:15 PM UTC+2, Kai Stian Olstad wrote

[ansible-project] maximum recursion depth exceeded

2017-11-17 Thread Gerben Venekamp
I am running in to the below error. TASK [include_role] Traceback (most recent call last): File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 268, in _feed

[ansible-project] module connect_to_api from vmware has no attribute 'SSLContext'

2017-11-17 Thread Josu Vilda
Hello, I'm having problems with module vmware_guest_snapshot. Any solution? [root@ges1ansibledes ansible]# ansible --version ansible 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u '/usr/share/ansible/plugins/modules'] a

[ansible-project] Ansible Tower - LDAP

2017-11-17 Thread Shaun Glass
Good Day, I am trying to connect Tower to our LDAP Server (AD). I have captured tcpdumps and can see it is connecting; searching and finding records but the actual authentication is not occurring. Can anyone assist in this matter ? I have the following populated, apart for the normal connectio

Re: [ansible-project] Ansible network

2017-11-17 Thread Pshem Kowalczyk
Hi, You need a space between the dash '-' and 'name:' in the task list. I suggest you find a text editor that supports YAML validation to make your life easier. kind regards Pshem On Fri, 17 Nov 2017 at 20:42 SK wrote: > Hi, > > I am using Ansible for the first time to test basic commands on

Re: [ansible-project] ansible --list-hosts behaviour

2017-11-17 Thread Aivars Šterns
> > So this is bug then do i need to report that in ansible 2.4 it does not > work as expected ? On Thursday, November 16, 2017 at 10:29:32 PM UTC+2, Brian Coca wrote: > > Don't take this as cannon, I would like to raise this in core team > meeting, but until then here are my thoughts: > > Th

[ansible-project] Re: Ansible ad-hoc win_ping fails for Windows hosts where direct pywinrm request works

2017-11-17 Thread macronaute
Hi, You've hit the nail right on the head!! "Issue" solved... Le jeudi 16 novembre 2017 13:19:18 UTC+1, macro...@gmail.com a écrit : > > Good morning, > > I'm struggling with an annoying issue with my current Ansible setup. > Ansible master server is configured and I'm testing basic connectiviy

[ansible-project] Windows Server 2016 non-domain server, Ansible setup module issue

2017-11-17 Thread Mike Fennemore
Ansible: 2.1.0.0 Ansible Control Server: Centos 7.4 Target: Windows Server 2016 On running the playbook it fails during the setup module. I have tested locally on the machine for the property in question and it is present. What is the cause? TASK [setup] ***

[ansible-project] Re: "SSLHandshake: Unsupported curveid: 29" with win_get_url

2017-11-17 Thread Mike Fennemore
if you run the same playbook with win_get_url but with - what is the output? On Friday, November 17, 2017 at 8:59:32 AM UTC+1, Jean Jordaan wrote: > > Hi all > > We're trying to get a file from a server in a playbook: > > - win_get_url: >url: https://some.domain.com/test.txt >

[ansible-project] Re: basic connection to windows with WinRM failing, need a clue.

2017-11-17 Thread Mike Fennemore
Is the user you are attempting to connect with a Local admin? if not try winrm configSDDL default then adding the required permissions for the user. On Friday, November 17, 2017 at 12:03:32 AM UTC+1, Jackson Pollock wrote: > > First time trying to get some windows automation going, I must be mis

[ansible-project] Re: lineinfile append to line?

2017-11-17 Thread leam hall
On Thursday, November 16, 2017 at 4:42:19 PM UTC-5, leam hall wrote: > > Trying to edit grub.conf and add a phrase to the kernel lines. > > *Sample stanza:* > > title CentOS (2.6.32-696.13.2.el6.x86_64) > root (hd0,0) > kernel /vmlinuz-2.6.32-696.13.2.el6.x86_64 ro > root=/dev/mapper/vg

[ansible-project] Re: Use of synchronize ask a password

2017-11-17 Thread lidor . ettinger
Hi, I solved it with another solution. so if someone will be interested - name: Copy over SCP local_action: "command sshpass -p {{pass}} scp -r $LOCAL_FOLDER {{user}}@$IP_DEST:$DEST_FOLDER" On Friday, 17 November 2017 08:46:43 UTC+1, lidor.e...@gmail.com wrote: > > There are some documents or

[ansible-project] virt module VMNotFound

2017-11-17 Thread Moreno Garcia
I have 3 machines provisioned on KVM. Here is my inventory: [local] localhost ansible_connection=local [dbservers] server1 server2 server3 When I run from the command line: $ ansible localhost -m virt -a "name=scylla3 command=status" localhost | SUCCESS => { "changed": false, "fai

[ansible-project] Re: virt module VMNotFound

2017-11-17 Thread Moreno Garcia
The command line is actually: $ ansible localhost -m virt -a "name=server3 command=status" -- 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+un

[ansible-project] Re: "SSLHandshake: Unsupported curveid: 29" with win_get_url

2017-11-17 Thread chanond
The error message is somehow different than what it originally was, but the output I'm getting from - (Jean posted on my behalf) is still similar which is the following: TASK [win_get_url] *** ta

[ansible-project] Re: "SSLHandshake: Unsupported curveid: 29" with win_get_url

2017-11-17 Thread Mike Fennemore
Are you running Ansible from Bash on Ubuntu on Windows? On Friday, November 17, 2017 at 12:58:17 PM UTC+1, cha...@salweensolutions.com wrote: > > The error message is somehow different than what it originally was, but > the output I'm getting from - (Jean posted on my behalf) is still > sim

[ansible-project] Re: module connect_to_api from vmware has no attribute 'SSLContext'

2017-11-17 Thread Josu Vilda
According to the documentation on the web http://docs.ansible.com/ansible/latest/vmware_guest_snapshot_module.html *vmware_guest_snapshot - Manages virtual machines snapshots in vcenter *Requirements : python >= 2.6 & *PyVmomi *but ... - settings "validate_certs: True" option, it shows :

[ansible-project] Windows Server 2016 non-domain server, Ansible setup module issue

2017-11-17 Thread Jordan Borean
2.1 is 3 releases old and is no longer supported by Ansible. There has also been massive improvements and bug fixes for Windows since then and I would highly recommend you upgrade to at least 2.3 and try again. I don’t know why it failed but unless you can verify it is still happening on the la

Re: [ansible-project] Re: "SSLHandshake: Unsupported curveid: 29" with win_get_url

2017-11-17 Thread Jean Jordaan
Yes, using WSL. On 17 Nov 2017 7:31 p.m., "Mike Fennemore" wrote: > Are you running Ansible from Bash on Ubuntu on Windows? > > On Friday, November 17, 2017 at 12:58:17 PM UTC+1, > cha...@salweensolutions.com wrote: >> >> The error message is somehow different than what it originally was, but >>

[ansible-project] Re: virt module VMNotFound

2017-11-17 Thread Moreno Garcia
ansible --version ansible 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = [u '/home/bfranklin/.ansible/plugins/modules', u '/usr/share/ansible/plugins/modules'] ansible python module location = /home/bfranklin/.local/lib/python2.7/site -packages/ansible execut

[ansible-project] Re: Use of synchronize ask a password

2017-11-17 Thread Moreno Garcia
I use scp-copy-id (on Ubuntu) https://linux.die.net/man/1/ssh-copy-id On Friday, November 17, 2017 at 8:35:19 AM UTC-2, lidor.e...@gmail.com wrote: > > Hi, > > I solved it with another solution. so if someone will be interested > > - name: Copy over SCP > local_action: "command sshpass -p {{pa

[ansible-project] Rescue all hosts if one host fails

2017-11-17 Thread Aaron Falk
There is no possibility to run the rescue part for all hosts if one host fails. I'm working on my deployment for a website. I want to deploy the site to multiple hosts. If something fails for one host than all hosts should not be deployed. Therefore, a rollback on all hosts should happen. The c

[ansible-project] route53_zone doesn't create a private and a public hosted zone.

2017-11-17 Thread Mohammad Asim Ayub
Ansible version 2.3.0.0 I want to create two hosted zones 1 private and 1 public. When I create it manually on AWS console it gets created and the private hosted zone is associated with my VPC. However through Ansible only 1 zone is created. If the task to create private hosted zone is first th

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread stefano . bianchi
HI again, i'm going on with the cli configuration i'm stuck on this point, i don't know how to express this: *idg(config web-mgmt)#: "some conf"* Considering what you suggested for regex for special characters. On Wednesday, 15 November 2017 15:07:58 UTC+1, stefano...@nap-anywhere.com wrote:

Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 15.14.18 CET stefano.bian...@nap-anywhere.com wrote: > HI again, > > i'm going on with the cli configuration i'm stuck on this point, i don't > know how to express this: > > *idg(config web-mgmt)#: "some conf"* > > Considering what you suggested for regex for special

[ansible-project] Intermittent Kerberos Issues and Unable to Fetch Files Greater than 500MB

2017-11-17 Thread Richard Rogers
Hi, I'm having a couple of issues at the moment. The main one being that running any playbook (or even direct ansible command) against a windows domain joined server (2008 R2/2012/2012 R2) sometimes fails with the below error, yet will then work if run again straight away. fatal: [SERVER.DOMAIN

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread stefano . bianchi
Thank you Kai i write my code here just to explain what i'm doing: - name: Launch the CLI with new password expect: command: telnet 0 2200 responses: login: "admin" Password: "P55tp4xe!" Press any key to continue\.: "" Enable Secure Backup mode.*

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread stefano . bianchi
Thank you Kai i write my code here just to explain what i'm doing: - name: Launch the CLI with new password expect: command: telnet 0 2200 responses: login: "user" Password: "password" Press any key to continue\.: "" Enable Secure Backup mode.*:

Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 16.10.08 CET stefano.bian...@nap-anywhere.com wrote: > Thank you Kai > > i write my code here just to explain what i'm doing: > > > - name: Launch the CLI with new password > expect: > command: telnet 0 2200 > responses: > login: "user" >

[ansible-project] sudo and change user

2017-11-17 Thread Nikos Skalis
Could you please advise how usera@serverX:~> sudo su - userb Last login: Fri Nov 17 15:46:48 CET 2017 on pts/1 -bash-4.2$ (note that no password requested above) translates into ansible ? More specifically, I would like to login to linux server X as `usera` then become `userb` (w

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread stefano . bianchi
Thank you again Kai, I tried your code and i get this output: *The full traceback is:* * File "/tmp/ansible_its4CY/ansible_module_expect.py", line 109, in wrapped* *return next(resp_gen)* *fatal: [stefano2]: FAILED! => {* *"changed": false,* *"failed": true,* *"invocation": {*

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread stefano . bianchi
Thank you again Kai, I tried your code and i get this output: *The full traceback is:* * File "/tmp/ansible_its4CY/ansible_module_expect.py", line 109, in wrapped* *return next(resp_gen)* *fatal: [stefano2]: FAILED! => {* *"changed": false,* *"failed": true,* *"invocation": {*

Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 17.23.19 CET stefano.bian...@nap-anywhere.com wrote: > Thank you again Kai, > > I tried your code and i get this output: > > *The full traceback is:* > * File "/tmp/ansible_its4CY/ansible_module_expect.py", line 109, in > wrapped* > *return next(resp_gen)* > > *

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread stefano . bianchi
Yes kai it was the problem! Now i am sure the number of exit is correct and the configuration go fine, at the end now i get this message, even if the configuration is done i get such an error how can i avoid it? I mean now this error it is not an error, after i finished the configuration i exit

Re: [ansible-project] Re: ansible2.4: playbook group_vars/* no longer loaded into hostvars

2017-11-17 Thread Brian Coca
see if this if fixed in the upcoming 2.4.2, I believe this https://github.com/ansible/ansible/pull/32269 PR solves the corner cases that prevented play adjacent group/host vars from being picked up -- -- Brian Coca -- You received this message because you are subscribed to the Google

Re: [ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 17.46.20 CET stefano.bian...@nap-anywhere.com wrote: > Yes kai it was the problem! > > Now i am sure the number of exit is correct and the configuration go fine, > at the end now i get this message, even if the configuration is done i get > such an error how can i avo

Re: [ansible-project] Running ansible script on same host multiple times?

2017-11-17 Thread sjain
Thank you so much kai you helped me for all my queries. On Tuesday, November 14, 2017 at 2:02:03 AM UTC+5:30, Kai Stian Olstad wrote: > > On Monday, 13 November 2017 18.40.50 CET SHUBHAM JAIN wrote: > > *Thank you so much kai. your solution made my day and it is totally > great > > and worked

[ansible-project] Using ansible and EC2 to create instances... exact_count not being honored (sort of)

2017-11-17 Thread Dayton Jones
I'm trying to get ansible to create ec2 instances using the following play...works great the first time but there is an issue on subsequent runs... When first run, the host gets created, tagged,etc as expected. But when the playbook is run again, a new instance is spun up if the vpc_subnet_id

[ansible-project] Re: virt module VMNotFound

2017-11-17 Thread Moreno Garcia
I'm not a programmer but I decided to run some tests with the code. VMs *ON* Python 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> print "VMs off" VMs off >>> conn = libvirt.open

[ansible-project] Re: Intermittent Kerberos Issues and Unable to Fetch Files Greater than 500MB

2017-11-17 Thread 'J Hawkesworth' via Ansible Project
Not had that particular error but I know from experience that kerberos is particularly dependent on DNS working reliably and also clock synchronisation. I suggest checking that your ansible controller is able to nslookup your domain controller machines reliably. Something like the following (n

Re: [ansible-project] virt module VMNotFound

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 11.55.01 CET Moreno Garcia wrote: > I have 3 machines provisioned on KVM. Here is my inventory: > > [local] > localhost ansible_connection=local > > > [dbservers] > server1 > server2 > server3 > > > When I run from the command line: > > $ ansible localhost -m vir

Re: [ansible-project] Rescue all hosts if one host fails

2017-11-17 Thread Pshem Kowalczyk
Hi You can use the following method (sorry I don't have the playbook ready). 1. Run the upgrade on each host, ignore errors, but register the results and store them in a file on the controller machine (you can also manually - fail: once the error is registered for a given host) 2. Once all upgrad

[ansible-project] Sending Break/Escape Sequence hot keys via a play

2017-11-17 Thread ayyappan ramanan
Hi All, I am unsure if this question has been raised before. I use Ansible for network automation and it has been working great so far. I am trying to use Ansible/Ansible Tower to automate a virtual network lab on GNS3. As you may be aware already, GNS3 provides a sleak Out-of-the-band managem

[ansible-project] Re: expect "Press enter to continue"

2017-11-17 Thread ayyappan ramanan
Hi Stefano, I am an Ansible newb. I have a similar problem as yours. I was looking for solutions to send break sequence to the console (Ctrl+]). I am unsure if this helps, but in some google groups, I remember seeing EXPECT module being used to interact with such CLIs. Just in case if you did

Re: [ansible-project] Sending Break/Escape Sequence hot keys via a play

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 22.38.48 CET ayyappan ramanan wrote: > I am unsure if this question has been raised before. I use Ansible for > network automation and it has been working great so far. > > I am trying to use Ansible/Ansible Tower to automate a virtual network lab > on GNS3. As you ma

Re: [ansible-project] virt module VMNotFound

2017-11-17 Thread Moreno Garcia
Kai, thanks a lot for taking the time to reply. Tried with delegate_to "msg": "Unsupported parameters for (virt) module: delegate_to Supported parameters include: autostart,command,name,state,uri,xml" I already tried with localhost on the playbook, let me try again. Changing the name to localh

Re: [ansible-project] virt module VMNotFound

2017-11-17 Thread Kai Stian Olstad
On Friday, 17 November 2017 23.15.51 CET Moreno Garcia wrote: > Kai, thanks a lot for taking the time to reply. > > Tried with delegate_to > > "msg": "Unsupported parameters for (virt) module: delegate_to Supported > parameters include: autostart,command,name,state,uri,xml" Your indentation was

Re: [ansible-project] virt module VMNotFound

2017-11-17 Thread Moreno Garcia
It worked like a charm. Thanks a lot Kai! On Friday, November 17, 2017 at 8:24:44 PM UTC-2, Kai Stian Olstad wrote: > > On Friday, 17 November 2017 23.15.51 CET Moreno Garcia wrote: > > Kai, thanks a lot for taking the time to reply. > > > > Tried with delegate_to > > > > "msg": "Unsupported

[ansible-project] Re: Utilizing win_iis_webbinding to update IIS certs

2017-11-17 Thread John Martin
I was able to successfully import the module, naming it win_dsc_devel. I verified it with an adhoc call, passing no parameters, confirming that Ansible sees the module. The problem I'm having, using the win_dsc example of the module to create an IIS website is that I get errors when attempting

[ansible-project] Re: sudo and change user

2017-11-17 Thread Moreno Garcia
- name: Run a command as the userb user command: somecommand become: true become_user: userb On Friday, November 17, 2017 at 2:17:15 PM UTC-2, Nikos Skalis wrote: > > Could you please advise how > > usera@serverX:~> sudo su - userb > Last login: Fri Nov 17 15:46:48 CET 2017 on pt

Re: [ansible-project] Sending Break/Escape Sequence hot keys via a play

2017-11-17 Thread ayyappan ramanan
Awesome. Will try and let you know. Thanks for your time. Get Outlook for Android From: ansible-project@googlegroups.com on behalf of Kai Stian Olstad Sent: Saturday, November 18, 2017 9:10:22 AM To: ansible-project@googlegroups.com Subje

[ansible-project] Re: Utilizing win_iis_webbinding to update IIS certs

2017-11-17 Thread Jordan Borean
That's weird I was able to get this task working in an optional integration test when developing these changes here https://github.com/ansible/ansible/blob/devel/test/integration/targets/win_dsc/tasks/destructive.yml#L62. Are you able to open a GitHub issue about this and I'll try and look into