MLflow wait_for: ignore_errors so install continues regardless
This commit is contained in:
parent
2ef5f4118b
commit
553b0228e8
@ -5,7 +5,7 @@
|
|||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
|
|
||||||
- name: Upgrade all packages
|
- name: Upgrade all packages (this takes 10–20 min on first run, please wait...)
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
@ -85,7 +85,7 @@
|
|||||||
args:
|
args:
|
||||||
creates: /opt/cezen/miniconda/envs/cezen
|
creates: /opt/cezen/miniconda/envs/cezen
|
||||||
|
|
||||||
- name: Install LangChain + LlamaIndex + HuggingFace in conda env
|
- name: Install LangChain + LlamaIndex + HuggingFace in conda env (5–10 min, please wait...)
|
||||||
become_user: cezen
|
become_user: cezen
|
||||||
shell: |
|
shell: |
|
||||||
/opt/cezen/miniconda/bin/conda run -n cezen pip install \
|
/opt/cezen/miniconda/bin/conda run -n cezen pip install \
|
||||||
|
|||||||
@ -54,3 +54,4 @@
|
|||||||
host: localhost
|
host: localhost
|
||||||
port: 5000
|
port: 5000
|
||||||
timeout: 30
|
timeout: 30
|
||||||
|
ignore_errors: true
|
||||||
|
|||||||
@ -54,8 +54,9 @@ run_phase1() {
|
|||||||
echo "║ Cezen AI Suite — Phase 1: NVIDIA ║"
|
echo "║ Cezen AI Suite — Phase 1: NVIDIA ║"
|
||||||
echo "╚══════════════════════════════════════════╝"
|
echo "╚══════════════════════════════════════════╝"
|
||||||
|
|
||||||
|
ANSIBLE_STDOUT_CALLBACK=yaml \
|
||||||
ansible-playbook -i localhost, -c local "$ANSIBLE_DIR/phase1_nvidia.yml" \
|
ansible-playbook -i localhost, -c local "$ANSIBLE_DIR/phase1_nvidia.yml" \
|
||||||
-e "tier=$TIER" -v
|
-e "tier=$TIER"
|
||||||
|
|
||||||
# Register phase 2 as a one-shot systemd service so it runs after reboot
|
# Register phase 2 as a one-shot systemd service so it runs after reboot
|
||||||
cat > /etc/systemd/system/cezen-phase2.service << EOF
|
cat > /etc/systemd/system/cezen-phase2.service << EOF
|
||||||
@ -100,8 +101,9 @@ run_phase2() {
|
|||||||
echo "✓ NVIDIA driver: $(nvidia-smi --query-gpu=driver_version --format=csv,noheader | head -1)"
|
echo "✓ NVIDIA driver: $(nvidia-smi --query-gpu=driver_version --format=csv,noheader | head -1)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ANSIBLE_STDOUT_CALLBACK=yaml \
|
||||||
ansible-playbook -i localhost, -c local "$ANSIBLE_DIR/entry.yml" \
|
ansible-playbook -i localhost, -c local "$ANSIBLE_DIR/entry.yml" \
|
||||||
-e "tier=$TIER" -v
|
-e "tier=$TIER"
|
||||||
|
|
||||||
# Disable one-shot service so it doesn't run again on next reboot
|
# Disable one-shot service so it doesn't run again on next reboot
|
||||||
systemctl disable cezen-phase2.service 2>/dev/null || true
|
systemctl disable cezen-phase2.service 2>/dev/null || true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user