Le 07/09/2017 à 17:39, rambius a écrit :
> Hello,
>
> I have the following playbook:
>
> ---
> - name: Setup Upsource
> hosts: upsource
> tasks:
> - name: fetch upsource
> local_action: get_url url="{{ upsource_url }}" dest="{{
> installers_dir }}/{{ upsource_bundle }}" validate_certs="no"
> - name: create upsource directory
> file: path="{{ upsource_basedir }}" state=directory
> - name: extract upsource
> unarchive: src="{{ installers_dir }}/{{ upsource_bundle }}"
> dest="{{ upsource_basedir }}" creates="{{ upsource_extractdir }}"
>
> When I run it get_url fails with No space left on device error:
>
> $ ansible-playbook -i ../hosts site.yml
>
> PLAY [Setup Upsource]
> **********************************************************
>
> TASK [setup]
> *******************************************************************
> ok: [upsource]
>
> TASK [fetch upsource]
> **********************************************************
> fatal: [upsource -> localhost]: FAILED! => {"changed": false,
> "failed": true, "msg": "failed to create temporary content file:
> [Errno 28] No space left on device"}
> to retry, use: --limit
> @/home/user/tools/playbooks/upsource/site.retry
>
> PLAY RECAP
> *********************************************************************
> upsource : ok=1 changed=0 unreachable=0
> failed=1
>
>
> I double checked the space available and my hypothesis is that /tmp
> partition may be too small. Does ansible use /tmp when downloading
> files? Can I point it to some other directory? When I call wget
> directly I am able to download the file, so I have enough disk space.
>
> - name: fetch upsource
> local_action: "command wget {{ upsource_url }} -O {{
> installers_dir }}/{{ upsource_bundle }} creates={{ installers_dir
> }}/{{ upsource_bundle }}"
>
>
> Any hints how to fix that issue? Thank you in advance.
Hi,
RTFM http://docs.ansible.com/ansible/latest/get_url_module.html
tmp_dest is what you are looking for
Regards,
JYL
--
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/2f028eb7-5f00-b938-c2d4-184b3417e1e7%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.