- name: Test playbook
hosts: localhost
gather_facts: false
become: false
tasks:
- uri:
url: https://storage.googleapis.com/kubernetes-release/release/stable.txt
return_content: yes
register: response
- set_fact:
version: "{{ response.content | trim }}"
- debug: var=version
On 20 July 2017 at 01:05, Homayoun Najafizadeh <[email protected]> wrote:
> Hi All,
>
> Is there anyway I can download this path via Ansible?
>
> curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s
> https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
>
> As you can see the path is variable based on value in stable.txt file (at
> this point is '1.7.1').
>
>
>
> Thanks
>
> --
> 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/6dafaf98-1d1d-46d8-9272-f84691d36fca%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
Dick Visser
Sr. System & Network Engineer
GÉANT
Want to join us? We're hiring: https://www.geant.org/jobs
--
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/CAL8fbwNwUGuaWbAyJM084M%3D8USzUQ8K78ypcPh90X-L3%3DTe%3D3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.