Chuyển tới nội dung chính
Version: 4.1

Cài đặt HiTechCloud bằng Ansible

Dùng playbook Ansible sau để cài đặt HiTechCloud trên một hoặc nhiều máy đích:

---
- name: Install HiTechCloud on target machine
hosts: all
become: true
vars:
# Customize installation flags as needed. Full list: https://hitechcloud.org/install
hitechcloud_install_flags: "--debug --username=admin --password=super123"

tasks:
- name: Download and run HiTechCloud installer
shell: |
curl -sSL https://hitechcloud.org | bash -s -- {{ hitechcloud_install_flags }}
args:
executable: /bin/bash

Lưu nội dung trên thành install-hitechcloud.yml rồi chạy:

ansible-playbook -i inventory install-hitechcloud.yml

Lệnh này sẽ tự động cài đặt HiTechCloud trên mọi máy trong inventory của bạn.