Skip to content

Commit 6291d68

Browse files
committed
use ipfs_enable and ipfs_cluster_enable vars to toggle setup of both apps
1 parent 7b7b40b commit 6291d68

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

defaults/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
dist_url: https://dist.ipfs.io
2-
31
# IPFS
42

3+
# override to disable go-ipfs setup
4+
ipfs_enable: true
5+
56
ipfs_version: v0.4.19
67
ipfs_arch: amd64
78
ipfs_home: /home/ipfs
@@ -18,6 +19,9 @@ ipfs_reprovider_strategy: all
1819

1920
# IPFS Cluster
2021

22+
# override to disable ipfs cluster setup
23+
ipfs_cluster_enable: true
24+
2125
ipfs_cluster_secret: "use `od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n' ; echo` to generate this"
2226
ipfs_cluster_arch: amd64
2327
ipfs_cluster_version: v0.10.0

tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
- name: Set up ipfs
22
include_tasks: "{{ role_path }}/tasks/ipfs/main.yml"
33
tags: ipfs
4+
when: ipfs_enable | bool
45

56
- name: Set up ipfs-cluster
67
include_tasks: "{{ role_path }}/tasks/ipfs-cluster/main.yml"
7-
tags: ipfs
8+
tags: ipfs-cluster
9+
when: ipfs_cluster_enable | bool

vars/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist_url: https://dist.ipfs.io

0 commit comments

Comments
 (0)