[ansible-project] Transfer a file from a virtual machine managed by a Vmware Vcenter server to Ansible controller using ansible.

2017-03-28 Thread Mick st john
I am trying to copy a file from a virtual machine which is managed by a 
vCenter server to my Ansible controller.
I don't want to use "fetch" module as it needs SSH connectivity. Is there 
any way I *could transfer a file by not using fetch(SSH).*

 I've been through some modules like* vsphere_guest* but, did not find 
anything that transfer files from a VM to ansible controller.



-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/db4f9136-feb6-4b38-a5ff-6698bbc7f906%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Error while deploying virtual machine from a template on VMware VCenter Server. Cannot complete login due to an incorrect user name or password.

2017-01-05 Thread Mick st john
ANSIBLE VERSION USED: 2.2.0


I am trying to deploy a virtual machine from a template that is already 
present on an ESX which is managed by a VCenter Server.

I'm getting the following error after the execution of my playbook:

"Cannot connect to x.x.x.x: [InvalidLoginFault]: Cannot complete login due 
to an incorrect user name or password."

Playbook is as follows:


- vsphere_guest:
vcenter_hostname: x.x.x.x
username: myuser
password: mypass
guest: newvm01
from_template: yes
template_src: sometemplate
cluster: MainCluster
resource_pool: "temppool"
validate_certs: False

When I ran the playbook in the verbose(-vvv) mode, the following things were 
observed:

--
fatal: [127.0.0.1]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"cluster": "MainCluster",
"esxi": {},
"force": false,
"from_template": true,
"guest": "newvm01",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"power_on_after_clone": true,
"resource_pool": "temppool",
"snapshot_to_clone": null,
"state": "present",
"template_src": "sometemplate",
"username": "myuser}",
"validate_certs": false,
"vcenter_hostname": "x.x.x.x",
"vm_disk": {},
"vm_extra_config": {},
"vm_hardware": {},
"vm_hw_version": null,
"vm_nic": {},
"vmware_guest_facts": null
},
"module_name": "vsphere_guest"
},
"msg": "Cannot connect to x.x.x.x: [InvalidLoginFault]: Cannot complete 
login due to an incorrect user name or password."
}

PLAY RECAP *
127.0.0.1  : ok=0changed=0unreachable=0failed=1


The password value is not getting reflected for the json key password.




-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e2b7c420-311f-43fa-9cb8-1d6c12e62c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] How to configure Vyatta router using ansible 2.0 version?

2016-10-05 Thread Mick st john
I am trying to configure vyatta router using modules provided by ansible 
2.0 version. However, the commands such as "configure" are not supported by 
shell module as it is the configure command is not executed from /bin/sh. 
I am aware of the fact that ansible latest version 2.2 has a "vyos" module 
which supports vyatta configuration. But, what can I do to make it possible 
for me to configure vyatta router using modules provided in 2.0 version?


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7b1d19ea-58be-4564-a63b-a3480d1dab06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Failed to ping linux machine having python version 3.5.1

2016-05-18 Thread Mick st john
I am trying to ping a linux machine having python version 3.5.1+, but I am 
facing the following error. 

ansible -m ping linux1


1.1.1.2 | FAILED! => {
"changed": false, 
"failed": true, 
"msg": "Traceback (most recent call last):\r\n  File 
\"//test/log/tmp/ansible-tmp-1463555484.41-81681372152272/ping\", line 44, 
in \r\nimport exceptions\r\nImportError: No module named 
'exceptions'\r\n", 
"parsed": false
}



Ansible version of my ansible controller is 2.0.0


When I tried pinging a linux machine having python version 2.7.9, it is 
working properly.



-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c401fc34-c9ed-4d46-b789-1afc7426cf6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Copy files from windows machine to linux machine using ansible

2016-04-25 Thread Mick st john
 I used flat=yes and the issue is now resolved. Thank you!

On Tuesday, April 26, 2016 at 9:43:06 AM UTC+5:30, Mick st john wrote:
>
> I did some changes and it worked. But, the whole directory is getting 
> created on the linux machine which has the desired file. 
>
>
> On Tuesday, April 26, 2016 at 9:34:12 AM UTC+5:30, Mick st john wrote:
>>
>> I tried the following playbook:
>>
>> --- 
>> - hosts: windows
>>   tasks:
>>  - name: copy file
>>fetch: src=\path\to\file\on\windows\machine 
>> dest=/destination/directory
>>
>> But, somehow it failed. Am I doing it the wrong way?
>>
>> On Monday, April 25, 2016 at 8:24:58 PM UTC+5:30, J Hawkesworth wrote:
>>>
>>> Fetch can also fetch from windows machines back to your ansible 
>>> controller machine.
>>>
>>> If you are fetching from > 1 windows box don't forget to fetch to a 
>>> directory, or use something like {{ inventory_hostname_short }} when 
>>> generating the file name.
>>>
>>> Hope this helps,
>>>
>>> Jon
>>>
>>>
>>> On Monday, April 25, 2016 at 3:06:04 PM UTC+1, Mick st john wrote:
>>>>
>>>> I trying to copy files from a remote windows machine to my local 
>>>> machine(linux machine) using ansible. As fetch module works for linux to 
>>>> linux file transfer, is there anything similar that could enable me to 
>>>> fetch files from windows machine to linux machine?
>>>>
>>>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f2e44c3f-72f6-4cb3-9aeb-59f85d312a85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Copy files from windows machine to linux machine using ansible

2016-04-25 Thread Mick st john
I did some changes and it worked. But, the whole directory is getting 
created on the linux machine which has the desired file. 


On Tuesday, April 26, 2016 at 9:34:12 AM UTC+5:30, Mick st john wrote:
>
> I tried the following playbook:
>
> --- 
> - hosts: windows
>   tasks:
>  - name: copy file
>fetch: src=\path\to\file\on\windows\machine 
> dest=/destination/directory
>
> But, somehow it failed. Am I doing it the wrong way?
>
> On Monday, April 25, 2016 at 8:24:58 PM UTC+5:30, J Hawkesworth wrote:
>>
>> Fetch can also fetch from windows machines back to your ansible 
>> controller machine.
>>
>> If you are fetching from > 1 windows box don't forget to fetch to a 
>> directory, or use something like {{ inventory_hostname_short }} when 
>> generating the file name.
>>
>> Hope this helps,
>>
>> Jon
>>
>>
>> On Monday, April 25, 2016 at 3:06:04 PM UTC+1, Mick st john wrote:
>>>
>>> I trying to copy files from a remote windows machine to my local 
>>> machine(linux machine) using ansible. As fetch module works for linux to 
>>> linux file transfer, is there anything similar that could enable me to 
>>> fetch files from windows machine to linux machine?
>>>
>>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/aacc5b42-2888-41da-b5f0-18b41f329ff9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Copy files from windows machine to linux machine using ansible

2016-04-25 Thread Mick st john
I tried the following playbook:

--- 
- hosts: windows
  tasks:
 - name: copy file
   fetch: src=\path\to\file\on\windows\machine 
dest=/destination/directory

But, somehow it failed. Am I doing it the wrong way?

On Monday, April 25, 2016 at 8:24:58 PM UTC+5:30, J Hawkesworth wrote:
>
> Fetch can also fetch from windows machines back to your ansible controller 
> machine.
>
> If you are fetching from > 1 windows box don't forget to fetch to a 
> directory, or use something like {{ inventory_hostname_short }} when 
> generating the file name.
>
> Hope this helps,
>
> Jon
>
>
> On Monday, April 25, 2016 at 3:06:04 PM UTC+1, Mick st john wrote:
>>
>> I trying to copy files from a remote windows machine to my local 
>> machine(linux machine) using ansible. As fetch module works for linux to 
>> linux file transfer, is there anything similar that could enable me to 
>> fetch files from windows machine to linux machine?
>>
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9ba7a339-d176-4707-81ba-1eb4d8d3b4ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Copy files from windows machine to linux machine using ansible

2016-04-25 Thread Mick st john
I trying to copy files from a remote windows machine to my local 
machine(linux machine) using ansible. As fetch module works for linux to 
linux file transfer, is there anything similar that could enable me to 
fetch files from windows machine to linux machine?

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2ae889fe-6049-4b4c-bc28-13ea88c8001c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.