The following playbook will failed but exchanged with commented out line 
then it would work.
Is there a way to evaluate the url string in get_url?
---
- hosts: all
  become: true
  tasks:
  - name: install docker-compose
    get_url: 
#     url: 
https://github.com/docker/compose/releases/download/1.24.1/docker-compose-Linux-x86_64
 
      url: 
https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname
 
-s`-`uname -m`
      dest: /usr/local/bin/docker-compose
      mode: '0744'
      owner: vagrant
      group: vagrant

======

TASK [install docker-compose] 
**************************************************
fatal: [default]: FAILED! => {"changed": false, "dest": 
"/usr/local/bin/docker-compose", "elapsed": 0, "msg": "Request failed", 
"response": "HTTP Error 400: Bad Request", "status_code": 400, "url": 
"https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname
 
-s`-`uname -m`"}

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/46fe51b0-71d4-4a70-bc21-a1765d5275f2%40googlegroups.com.

Reply via email to