Kapisi/playbooks/deploy.yml

84 lines
2.0 KiB
YAML
Raw Permalink Normal View History

2020-10-08 16:33:19 -05:00
---
# deploy.yml
#
# This playbook details how an entire datacenter should be deployed
2021-12-19 21:32:19 -06:00
#
2020-10-08 16:33:19 -05:00
# Parameters:
2022-04-19 12:01:03 -05:00
# threads: Number of threads to use; default is 16.
#
- hosts: Nazara
order: sorted
serial: "{{ threads | default('16') }}"
gather_facts: true
ignore_unreachable: true
vars_files:
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
vars:
- ansible_password: "{{ passwords[inventory_hostname] }}"
- ansible_become_password: "{{ passwords[inventory_hostname] }}"
roles:
- Nazara
2020-10-08 16:33:19 -05:00
2021-12-19 21:32:19 -06:00
- hosts: managed
2020-10-08 16:33:19 -05:00
order: sorted
2022-04-19 12:01:03 -05:00
serial: "{{ threads | default('16') }}"
2020-10-08 16:33:19 -05:00
gather_facts: true
ignore_unreachable: true
vars_files:
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
2022-04-19 12:01:03 -05:00
vars: # This is the only segment that should need these variables, as the basics role should take care of sudo and the SSH key.
- ansible_password: "{{ passwords[inventory_hostname] }}"
- ansible_become_password: "{{ passwords[inventory_hostname] }}"
2020-10-08 16:33:19 -05:00
roles:
2022-04-19 12:01:03 -05:00
- ShadowArch
2020-10-08 16:33:19 -05:00
- SSH
2022-04-19 12:01:03 -05:00
- Sharingan
2024-01-12 13:06:19 -06:00
- hosts: Yggdrasil
2022-04-19 12:01:03 -05:00
order: sorted
serial: "{{ threads | default('16') }}"
gather_facts: true
ignore_unreachable: true
vars_files:
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
roles:
- hardware
- SSL
2022-12-18 22:23:17 -06:00
- WebServer
- IRC
2024-01-12 13:06:19 -06:00
- WolfPack
- Foundation
- Yggrasil
2020-10-08 16:33:19 -05:00
2022-04-19 12:01:03 -05:00
- hosts: geth_hubs
2020-10-08 16:33:19 -05:00
order: sorted
2022-04-19 12:01:03 -05:00
serial: "{{ threads | default('16') }}"
2020-10-08 16:33:19 -05:00
gather_facts: true
ignore_unreachable: true
vars_files:
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
roles:
2021-12-19 21:32:19 -06:00
- Geth-Hub
2023-12-21 12:58:32 -06:00
- hosts: Node1,Node2,Node3
2022-04-19 12:01:03 -05:00
order: sorted
serial: "{{ threads | default('16') }}"
gather_facts: true
ignore_unreachable: true
vars_files:
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
roles:
- hardware
- Node
2021-12-19 21:32:19 -06:00
2022-12-18 22:23:17 -06:00
- hosts: DarkNet
order: sorted
serial: "{{ threads | default('16') }}"
gather_facts: true
ignore_unreachable: true
vars_files:
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
roles:
- DarkNet
2024-01-12 13:06:19 -06:00
- WolfPack