Hi guys,
I am running an ansible playbook that supposed to return an apllication ID 
that I am having some issue; here the playbook 

- action: shell curl --basic -u admin:admin -F 
file=/etc/ansible/playbooks/ms3-samples.zip -F name=ms3-samples -F 
version=2.0 --header "Content-Type:multipart/form-data" 
"http://52.73.56.141:8080/mmc-console-3.6.2/api/repository";
  register: upload
- debug: var=upload

After running here is the result:

PLAY [mmc] 
*********************************************************************

TASK [setup] 
*******************************************************************
ok: [ip-172-31-61-191.ec2.internal]



#- name: post to cons
TASK [command] 
*****************************************************************


changed: [ip-172-31-61-191.ec2.internal]
 [WARNING]: Consider using get_url or uri module rather than running curl


TASK [debug] 
*******************************************************************
ok: [ip-172-31-61-191.ec2.internal] => {
    "upload": {
        "changed": true,
        "cmd": "curl --basic -u admin:admin -F 
file=/etc/ansible/playbooks/@ms3-samples.zip -F name=ms3-samples -F 
version=2.0 --header \"Content-Type:multipart/form-data\" 
\"http://52.73.56.141:8080/mmc-console-3.6.2/api/repository\"";,
        "delta": "0:00:00.088039",
        "end": "2016-07-21 20:38:47.715591",
        "rc": 0,
        "start": "2016-07-21 20:38:47.627552",
        "stderr": "  % Total    % Received % Xferd  Average Speed   Time    
Time     Time  Current\n                                 Dload  Upload   
Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      
0 --:--:-- --:--:-- --:--:--     0\r100   411    0    30  100   381    
362   4601 --:--:-- --:--:-- --:--:--  4646",
        "stdout": "Specify a valid file to upload",
        "stdout_lines": [
            "Specify a valid file to upload"
        ],
        "warnings": [
            "Consider using get_url or uri module rather than running curl"
        ]
    }
}

PLAY RECAP 
*********************************************************************
ip-172-31-61-191.ec2.internal : ok=3    changed=1    unreachable=0    
failed=0

It's telling me that Specify a valid file to upload" I don't know why the 
file is ms3-sample.zip. any ideas.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/73574d5d-fad2-4ae6-a1a7-d53edb640a52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to