fp/ansible/site.yml
CJ_Clippy 8ef71691e0
Some checks are pending
fp/our CI/CD / build (push) Waiting to run
ci / test (push) Waiting to run
use container port 3000
2025-10-07 04:12:07 -08:00

92 lines
1.5 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: all
gather_facts: true
check_mode: false
become: true
roles:
- common
- docker
- name: Set up docker swarm
hosts: swarm
gather_facts: true
roles:
- swarm
vars:
swarm_enable_manager: "{{ inventory_hostname == groups['swarm'][0] }}"
- name: Setup swarm apps
hosts: swarm
gather_facts: true
check_mode: false
become: true
vars_files:
- vars/main.yml
roles:
- our
- rssapp
- 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: 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