Re: [ansible-project] Canonical way to correct a broken symlink

2017-01-09 Thread Johannes Kastl
On 09.01.17 21:26 Lorens Kockum wrote: > My problem is that while this is sometimes a file and sometimes a > link to another file, it is also sometimes a broken symlink > (literally to "None" in my case, how that happens is another > problem), and my play stops short (in check mode!) saying that I

[ansible-project] Canonical way to correct a broken symlink

2017-01-09 Thread Lorens Kockum
Hi, I'm just starting out with Ansible, and I probably haven't yet read all the docs I should, but I'm trying, so bear with me. I have a simple play: - name: test file: path: "/path/to/file" owner: username group: usergroup mode: 0644 follow: yes My problem is

[ansible-project] Create VM from template using vsphere_guest module

2017-01-09 Thread Robert Williams
Hello, I am new to Ansible and am having trouble spinning up a vm from a template using Ansible. I am unsure on what to put for "hosts" in my playbook. Should this be the vcenter hostname , vsphere hostname or something else? Any help is appreciated. Thanks in advance. *PlayBook* --- - hosts:

Re: [ansible-project] Found bug in "apt_rpm" module, fixed it. Not sure how to help.

2017-01-09 Thread Brian Coca
Hi, ​To start contributing you can just create a pull request against our github repo : https://github.com/ansible/ansible​ I recommend reading through developer information docs http://docs.ansible.com/ansible/dev_guide/index.html ​As for why it fails, it might be because the author assumes y

[ansible-project] variable inside regex_search inside a variable :)

2017-01-09 Thread az
Hello, after hours of struggle with Ansible I've decided to ask for help smarter people. What I'm trying to do is to remove (lets say just do ls -la for now all files and directories within certain locations which names are not containing any part of certain list of variables. Let me give you a

[ansible-project] Re: New UCS Ansible Module Based on UCS Python SDK Logout Issue

2017-01-09 Thread brian hopkins
Seems like its some issue with the encoding of the handle still looking into it more, thanks for the help thus far. On Monday, January 9, 2017 at 12:02:52 PM UTC-5, brian hopkins wrote: > > BTW seems as if its something to do with the handle because if I put in > the IP, user, and password into

[ansible-project] Re: New UCS Ansible Module Based on UCS Python SDK Logout Issue

2017-01-09 Thread brian hopkins
BTW seems as if its something to do with the handle because if I put in the IP, user, and password into the handle for the logout it works so I'll just update my playbook to have the login credentials on the logout as well. Thanks On Sunday, January 8, 2017 at 2:08:07 PM UTC-5, brian hopkins wr

Re: [ansible-project] New UCS Ansible Module Based on UCS Python SDK Logout Issue

2017-01-09 Thread brian hopkins
Yea I was thinking the same thing, I've tried a few different things and right now I've got this output as the error it almost seems as if its something to do with the json object of the handle on the logout: ansible-ucs brihopki$ ansible-playbook callhome.yml -vvv Using /Users/brihopki/ansible

[ansible-project] IMPORTANT - New RCs for Security Bug CVE-2016-9587

2017-01-09 Thread James Cammarata
Hi all, Today we are releasing two new release candidates to address CVE-2016-9587, which we are removing from embargo today: 2.1.4 RC1 2.2.1 RC3 CVE-2016-9587 is rated as HIGH in risk, as a compromised remote system being managed via Ansible can lead to commands being run on the Ansible control

Re: [ansible-project] Re: How to loop thru win_updates until no updates left

2017-01-09 Thread autogun
I've found a working solution, it's ugly and probably will cause more headache but it works. My solution looks like this: --- - hosts: localhost ignore_errors: true # gather_facts: true tasks: - shell: ansible-playbook wu.yml register: results until: "'\"found_update_count\":

[ansible-project] Call webhook - error 411 the request must be chunked or have a content length

2017-01-09 Thread Ansible_Red
Hi, I want to call a webhook from Ansible via the URI module, this is the playbook: --- - hosts: localhost tasks: - name: Call webhook uri: url: https://xxx/webhooks?token= method: POST I get the following error: "content": "http://www.w3.org/TR/html4/strict.dtd\";>\r\nL