Files
payphone/playbooks/06-scylla-cluster.yml
T
nyeki fcb1a786be Multiple things
Remove ArgoCD and Helm dependencies, add everything unnecessary to .dockerignore, add support for DB authentication in Payphone's CLI, make Scylla be fully managed by Ansible, add Payphone deployment ansible file
2025-08-18 01:06:03 -03:00

26 lines
741 B
YAML

- name: Set Up Scylla Cluster
hosts: init
become: true
gather_facts: false
tasks:
- name: Set Up ArgoCD Application for Scylla Cluster
kubernetes.core.k8s:
state: present
src: /tmp/k8s/06-scylla-cluster.yml
namespace: scylla
kubeconfig: /etc/rancher/k3s/k3s.yaml
- name: Wait for Scylla Cluster Application
ansible.builtin.command: |
kubectl -n scylla rollout status statefulset/{{ item }} --timeout=10m
loop:
- scylladb-ge-dc1-ge-dc1-rack1
- scylladb-ge-dc1-ge-dc1-rack2
- scylladb-ge-dc1-ge-dc1-rack3
register: rollout
retries: 30
delay: 10
until: rollout.rc == 0
ignore_errors: true
changed_when: false