[ansible-project] getting more detail from os_stack module?

2017-12-15 Thread Tim
Is it possible to get any more detail about a stack failure than what I'm getting when I use it? Running with -, I get an error like this "msg": "(400) Client Error for url: https://.7408cd0d01ad/stacks;, if i run the actual openstack command, I get a better error

[ansible-project] Re: Querying Registry and Using Output

2017-12-15 Thread Jordan Borean
If it is just one software you want to uninstall use win_package with the product id, e.g. - name: ensure Splunk x.y is uninstalled win_package: product_id: '{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}' # note this ID will be unique to the Splunk version state: absent IIRC correctly

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Jordan Borean
For some reason the ansible_winrm_server_cert_validation: ignore var is not being set for your Windows host hence the error. Can you test out the following before your win_stat task when running on the Windows host. - debug: var: ansible_winrm_server_cert_validation -- You received this

[ansible-project] mysql_users SHOW VIEW permission not granted.

2017-12-15 Thread colin byrne
I am struggling to set the SHOW VIEW permission for a user on a DATABASE. I have tried with the following syntax, to no avail: mysql_user: name: "{{ } }" password: "{{ } }" priv: ".*:SELECT,SHOW VIEW" host: "{{ }}" I am not sure what else to try! Thanks in advance

[ansible-project] Re: ANSIBLE_KEEP_REMOTE_FILES location on windows target?

2017-12-15 Thread Trond Hindenes
temp folder of the user account remoting in. So something like C:\users\myansibleusers\appdata\local\temp (if memory serves) On Wednesday, December 13, 2017 at 11:19:54 AM UTC+1, Gareth Stockdale wrote: > > Anyone know the default location of files on windows when using this to > run a

Re: [ansible-project] More efficient inventory lookups

2017-12-15 Thread Trond Hindenes
Gotcha, that makes sense. Thanks! On Thursday, December 14, 2017 at 10:38:25 PM UTC+1, Brian Coca wrote: > > No, as `--limit` does not affect hostvars[anyhost][itsvar], since you > need to run the play before you know what variables are consumed we > cannot preemptively avoid querying those. >

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Heather Luna
Hey there, I was just cutting my teeth on executing playbooks against Windows. To add to Tony's piece about the PowerShell script ConfiguringRemotingforAnsible.ps1 which I had to do I also had to pip install the following on the control machine within side my virtualenv: pip install pywinrm

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Alexmil Reyes
Thank you for responding. I am able to telnet to the windows machine without a problem. But the playbook still presented the same error when it was run. I ran the following commands on the windwos machine: winrm delete winrm/config/Listener?Address=*+Transport=HTTP winrm delete

Re: [ansible-project] Dynamic hosts in playbook with roles

2017-12-15 Thread Brian Coca
that is not a valid playbook, you are putting tasks in vars_prompt, they belong in a 'tasks' section, roles also shoudl be at play level: - name: Enter variables hosts: localhost gather_facts: no vars_prompt: - name: "vsphere_username" prompt: "Enter vSphere Username"

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Tony Chia
You can also try removing the existing listeners and then run ConfigureRemotingForAnsible.ps1 which will recreate the self-signed ssl certificate using the following commands winrm delete winrm/config/Listener?Address=*+Transport=HTTP winrm delete

[ansible-project] Re: Issue with running Ansible playbook against windows.

2017-12-15 Thread Tony Chia
Try running "ConfigureRemotingForAnsible.ps1" on the windows host you are trying to manage with Ansible. If that doesn't work try this command on the ansible host telnet windows-host-name 5985 telnet windows-host-name 5986 If you see "Trying ..." but times out, the maybe the network ACL is not

[ansible-project] how to comment out or remove the characters () in the tomcat web.xml file using ansible and also a simple playbbok to add the tomcat filters to web.xml file

2017-12-15 Thread Veeresh Reddy
how to comment out or remove the characters () in the tomcat web.xml file using ansible and also a simple playbbok to add the tomcat filters to web.xml file.please help me -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Querying Registry and Using Output

2017-12-15 Thread Heather Luna
I'm new to Ansible and trying to figure out the best way to account for: If software version of Splunk = 6.4.1 trigger certain task sequence that includes an uninstall of the software It felt like I needed to grab the uninstall string for Splunk from the registry to use with the win_package

[ansible-project] Dynamic hosts in playbook with roles

2017-12-15 Thread nbmprivat
I am having trouble figuring out how to dynamically add a provisioned host to inventory hosts. Structure: - Inventory - provisioning - group_vars all.yml hosts - Playbooks - roles - vars main.yml - deployment - tasks main.yml - provision -