viasite-ansible / ansible-role-zsh

Setup antigen with oh-my-zsh, powerlevel10k theme, fzf, autosuggestions, syntax-highlighting
https://habrahabr.ru/post/323496/
MIT License
347 stars 85 forks source link

TASK [viasite-ansible.zsh : Download fzf to ~root/bin] fails on arm architecture #65

Closed quantumfate closed 2 years ago

quantumfate commented 2 years ago
TASK [viasite-ansible.zsh : Download fzf to ~root/bin] **********************************************************************************
task path: /home/leonch/.ansible/roles/viasite-ansible.zsh/tasks/install.yml:66
changed: [quantumhome] => {"changed": true, "dest": "/root/bin", "extract_results": {"cmd": ["/usr/bin/tar", "--extract", "-C", "/root/bin", "-z", "-f", "/home/sao/.ansible/tmp/ansible-tmp-1661069264.8627656-420241-35450988546255/fzf-0.28.0-linux_amd64.tar_m41ff9w.gz"], "err": "", "out": "", "rc": 0}, "gid": 0, "group": "root", "handler": "TgzArchive", "mode": "0775", "owner": "root", "size": 4096, "src": "/home/sao/.ansible/tmp/ansible-tmp-1661069264.8627656-420241-35450988546255/fzf-0.28.0-linux_amd64.tar_m41ff9w.gz", "state": "directory", "uid": 0}
fatal: [raspberrypi]: FAILED! => {"changed": false, "msg": "Invalid archive '/home/pi/.ansible/tmp/ansible-tmp-1661069264.8863418-420242-47481378950163/fzf-0.28.0-linux_386.tarlg31dwr7.gz', the file is 0 bytes"}

Offending line: in vars/main.yml

zsh_fzf_arch: "{% if '64' in ansible_architecture %}amd64{% else %}386{% endif %}"
quantumfate commented 2 years ago

Pull request: https://github.com/viasite-ansible/ansible-role-zsh/pull/66