Skip to content

Commit e72e0cb

Browse files
committed
Setup NOpfs plugin with Kubo
1 parent d0d262e commit e72e0cb

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

roles/ipfs/tasks/main.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,34 @@
106106
creates: "{{ ipfs_home }}/.ipfs/config"
107107
notify: restart IPFS
108108

109+
- name: download and unpack NOpfs
110+
when: not ansible_check_mode
111+
block:
112+
- name: create plugins folder
113+
become: yes
114+
file:
115+
state: directory
116+
owner: ipfs
117+
group: ipfs
118+
dest: "{{ ipfs_home }}/.ipfs/plugins"
119+
120+
- name: download and unpack nopfs
121+
when: not ansible_check_mode
122+
become: yes
123+
unarchive:
124+
remote_src: yes
125+
src: "https://github.com/ipfs-shipyard/nopfs/releases/download/nopfs-kubo-plugin/{{nopfs_version}}/nopfs-kubo-plugin_{{nopfs_version}}_linux_{{ipfs_arch}}.tar.gz"
126+
dest: "{{ ipfs_home }}/.ipfs/plugins/"
127+
include:
128+
- nopfs-kubo-plugin/nopfs-kubo-plugin
129+
extra_opts:
130+
- "--strip-components=1"
131+
owner: ipfs
132+
group: ipfs
133+
notify: restart IPFS
134+
tags:
135+
- nopfs
136+
109137
- name: set version file (to notify restart on upgrades)
110138
become: yes
111139
copy:
@@ -115,7 +143,7 @@
115143
owner: ipfs
116144
group: ipfs
117145
notify: restart IPFS
118-
146+
119147
- name: reload systemd
120148
become: yes
121149
systemd:

0 commit comments

Comments
 (0)