|
1 | | -- name: create download folder for go-ipfs |
| 1 | +- name: create download folder for kubo |
2 | 2 | become: yes |
3 | 3 | file: |
4 | 4 | state: directory |
5 | 5 | owner: root |
6 | 6 | group: root |
7 | | - dest: /opt/go-ipfs/{{ipfs_version}} |
| 7 | + dest: /opt/kubo/{{ipfs_version}} |
8 | 8 |
|
9 | 9 | - name: download and unpack IPFS |
10 | 10 | when: not ansible_check_mode |
11 | 11 | block: |
12 | 12 | - name: download IPFS |
13 | 13 | become: yes |
14 | 14 | get_url: |
15 | | - url: "{{ dist_url }}/go-ipfs/{{ipfs_version}}/go-ipfs_{{ipfs_version}}_linux-{{ipfs_arch}}.tar.gz" |
16 | | - dest: /opt/go-ipfs/{{ipfs_version}}/go-ipfs.tar.gz |
| 15 | + url: "{{ dist_url }}/kubo/{{ipfs_version}}/kubo_{{ipfs_version}}_linux-{{ipfs_arch}}.tar.gz" |
| 16 | + dest: /opt/kubo/{{ipfs_version}}/kubo.tar.gz |
17 | 17 | timeout: 30 |
18 | 18 |
|
19 | | - - name: unpack go-ipfs |
| 19 | + - name: unpack kubo |
20 | 20 | become: yes |
21 | 21 | unarchive: |
22 | 22 | remote_src: yes |
23 | | - src: /opt/go-ipfs/{{ipfs_version}}/go-ipfs.tar.gz |
24 | | - dest: /opt/go-ipfs/{{ipfs_version}} |
25 | | - creates: /opt/go-ipfs/{{ipfs_version}}/go-ipfs |
| 23 | + src: /opt/kubo/{{ipfs_version}}/kubo.tar.gz |
| 24 | + dest: /opt/kubo/{{ipfs_version}} |
| 25 | + creates: /opt/kubo/{{ipfs_version}}/kubo |
26 | 26 | notify: restart IPFS |
27 | 27 |
|
28 | | - - name: link go-ipfs executable |
| 28 | + - name: link kubo executable |
29 | 29 | become: yes |
30 | 30 | file: |
31 | 31 | state: link |
32 | 32 | owner: root |
33 | 33 | group: root |
34 | 34 | dest: /usr/local/bin/ipfs |
35 | | - src: /opt/go-ipfs/{{ipfs_version}}/go-ipfs/ipfs |
| 35 | + src: /opt/kubo/{{ipfs_version}}/kubo/ipfs |
36 | 36 |
|
37 | 37 | - name: install ipfs systemd init service |
38 | 38 | become: yes |
|
88 | 88 | creates: "{{ ipfs_home }}/.ipfs/config" |
89 | 89 | notify: restart IPFS |
90 | 90 |
|
91 | | -- name: download and unpack NOpfs |
92 | | - when: not ansible_check_mode |
93 | | - block: |
94 | | - - name: create plugins folder |
95 | | - become: yes |
96 | | - file: |
97 | | - state: directory |
98 | | - owner: ipfs |
99 | | - group: ipfs |
100 | | - dest: "{{ ipfs_home }}/.ipfs/plugins" |
101 | | - |
102 | | - - name: download and unpack nopfs |
103 | | - when: not ansible_check_mode |
104 | | - become: yes |
105 | | - unarchive: |
106 | | - remote_src: yes |
107 | | - src: "https://github.com/ipfs-shipyard/nopfs/releases/download/nopfs-kubo-plugin/{{nopfs_version}}/nopfs-kubo-plugin_{{nopfs_version}}_linux_{{ipfs_arch}}.tar.gz" |
108 | | - dest: "{{ ipfs_home }}/.ipfs/plugins/" |
109 | | - include: |
110 | | - - nopfs-kubo-plugin/nopfs-kubo-plugin |
111 | | - extra_opts: |
112 | | - - "--strip-components=1" |
113 | | - owner: ipfs |
114 | | - group: ipfs |
115 | | - notify: restart IPFS |
116 | | - tags: |
117 | | - - nopfs |
118 | | - |
119 | 91 | - name: set version file (to notify restart on upgrades) |
120 | 92 | become: yes |
121 | 93 | copy: |
|
125 | 97 | owner: ipfs |
126 | 98 | group: ipfs |
127 | 99 | notify: restart IPFS |
128 | | - |
| 100 | + |
129 | 101 | - name: reload systemd |
130 | 102 | become: yes |
131 | 103 | systemd: |
|
0 commit comments