andrewrothstein / ansible-ipfs

MIT License
3 stars 5 forks source link

Install of Kubo fails #7

Open kravietz opened 1 year ago

kravietz commented 1 year ago
TASK [andrewrothstein.ipfs : kubo:v0.14.0: linking /usr/local/bin/kubo to /usr/local/kubo_v0.14.0/kubo/kubo] *******************************************************************************************************
fatal: [example.com]: FAILED! => {"changed": false, "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/kubo_v0.14.0/kubo/kubo", "path": "/usr/local/bin/kubo", "src": "/usr/local/kubo_v0.14.0/kubo/kubo"}

This is caused by the fact that the unpacked directory doesn't contain kubo binary, but an ipfs binary:

# ls -l /usr/local/kubo_v0.14.0/kubo/
install.sh      ipfs            LICENSE         LICENSE-APACHE  LICENSE-MIT     README.md
andrewrothstein commented 1 year ago

I think this is a vestigial remnant of a previous version of the role where I integrated kubo incorrectly. the latest version creates the ipfs link under /usr/local/bin into the /usr/local/kubo_v0.14.0/kubo subdirectory. Can u try upgrading to the latest version of the role (2.0.0) and try again?

andrewrothstein commented 1 year ago
└─$ ls -l `which ipfs`
lrwxrwxrwx 1 root root 33 Sep 25 16:24 /usr/local/bin/ipfs -> /usr/local/kubo_v0.14.0/kubo/ipfs