github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/dev/ansible/deploy_multi.sh (about)

     1  #!/bin/bash
     2  
     3  # Run the deploy for all hosts in inventory.yaml 
     4  ansible-playbook  -i inventory.yaml setup.yaml -e "ansible_become_pass=y" -vvv
     5  
     6  # Deploy the primary proxy first, so targets can connect
     7  ansible-playbook  -i inventory.yaml deploy_primary.yaml -e "ansible_become_pass=y" -vvv
     8  
     9  # Wait for primary to be ready before adding more targets
    10  sleep 10
    11  
    12  # Deploy additional targets
    13  ansible-playbook  -i inventory.yaml deploy_target.yaml -e "ansible_become_pass=y" -vvv
    14