CJ_Clippy 325fe576e2
Some checks failed
ci / test (push) Failing after 6m3s
fp/our CI/CD / build (push) Successful in 1m27s
add ipfs playbook
2025-10-04 08:45:34 -08:00

31 lines
783 B
YAML

---
- name: Restart ipfs
ansible.builtin.systemd_service:
name: ipfs
state: restarted
enabled: true
daemon_reload: true
- name: Restart ipfs-cluster-follow
ansible.builtin.systemd_service:
name: ipfs-cluster-follow
state: restarted
enabled: true
daemon_reload: true
- name: Migrate ipfs
ansible.builtin.shell:
creates: "{{ ipfs_path }}/version"
cmd: "env IPFS_PATH={{ ipfs_path }} /usr/local/bin/fs-repo-migrations" # noqa command-instead-of-shell
become: true
become_user: ipfs
- name: Initialize ipfs
ansible.builtin.shell:
creates: "{{ ipfs_path }}/datastore_spec"
cmd: "env IPFS_PATH={{ ipfs_path }} /usr/local/bin/ipfs init --profile pebbleds" # noqa command-instead-of-shell
become: true
become_user: ipfs