--- - name: Download and extract ipfs-cluster-follow ansible.builtin.unarchive: src: "https://dist.ipfs.tech/ipfs-cluster-follow/{{ ipfs_cluster_follow_version }}/ipfs-cluster-follow_{{ ipfs_cluster_follow_version }}_linux-amd64.tar.gz" dest: /tmp remote_src: true notify: - Restart ipfs-cluster-follow - name: Install ipfs-cluster-follow ansible.builtin.copy: src: /tmp/ipfs-cluster-follow/ipfs-cluster-follow dest: /usr/local/bin/ipfs-cluster-follow mode: "0755" remote_src: true notify: - Restart ipfs-cluster-follow - name: Generate random peername ansible.builtin.set_fact: ipfs_cluster_peername: "{{ lookup('password', '/dev/null length=8 chars=hexdigits') }}" - name: Create ipfs-cluster-follow service ansible.builtin.template: src: ipfs-cluster-follow.service.j2 dest: /etc/systemd/system/ipfs-cluster-follow.service mode: "0644" notify: - Restart ipfs-cluster-follow