fp/ansible/site.yml
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

96 lines
1.6 KiB
YAML

---
- name: Bootstrap
hosts: all
gather_facts: false ## required because ansible_host may not have python
check_mode: false
become: false
roles:
- bootstrap
- name: Assert common dependencies
hosts: swarm-node
gather_facts: true
check_mode: false
become: true
roles:
- common
- docker
# the decision of worker vs manager is set in ansible inventory by opentofu
- name: Set up docker swarm
hosts: swarm-node
gather_facts: true
roles:
- swarm
- name: Assert our dependencies
hosts: swarm-node
gather_facts: true
check_mode: false
become: true
roles:
- our
- name: Configure load balancer
hosts: loadbalancer
gather_facts: true
check_mode: false
become: false
roles:
- loadbalancer
vars_files:
- vars/main.yml
tags:
- lb
- name: Set up b2-cli
hosts: ipfs
gather_facts: true
roles:
- backblaze
tags:
- b2
- name: Set up IPFS
hosts: ipfs
gather_facts: true
vars:
ipfs_enable_blockstorage: true
ipfs_enable_kubo: true
ipfs_enable_ipfs_cluster_service: false
ipfs_enable_ipfs_cluster_follow: true
ipfs_enable_b2_cli: trure
roles:
- ipfs
tags:
- ipfs
# - name: Set up our app
# hosts: swarm-node
# gather_facts: true
# roles:
# - our
# tags:
# - our
# - name: Install Capture instance
# hosts: capture
# gather_facts: true
# check_mode: false
# become: false
# roles:
# - capture
# tags:
# - capture
# - name: Configure tracker
# hosts: tracker
# gather_facts: true
# check_mode: false
# become: false
# roles:
# - tracker