Installation unter Debian/Ubunti via Ansible
Ansible auf dem Konfig Laptop/PC installieren
Siehe Ansible Buch Ansible Buch
Playbook vorbereiten.
Auf dem konfigurations PC im Home Verzeichnis ein neues Verzeichnis erstellen. In Unserem Beispiel installappsmith
Auf dem Server wo appsmith drauf soll muss sich mit schlüsseldateien angemeldet werden können.
Nun das Verzeichnis anlegen
cd ~
mkdir installappsmith
Falls nicht vorhanden git installieren
apt install git
Nun in dem Verzeichnis das Playbook downloaden
git clone https://github.com/appsmithorg/appsmith.git
cd ./appsmith/deploy/ansible/appsmith_playbook
In dem Verzeichnis gibt es eine Extra Vars Datei (appsmith-vars.yml)
in der kann das Isntallationsverezcihnis geändert werden. Wir lassen es bei Standard.
(~/appsmith) So mit wird im Home root Verzeichnis im Verzeichnis appsmith installiert.
Nun die Inventory Datei anlegen.
nano hosts.ini
Inhalt: ip user und Port natürlich auf eure Bedürfnisse anpassen.
[appsmith]
192.168.178.75 ansible_port=22 ansible_user=root
Playbook ausführen und zurücklehnen
ansible-playbook -i hosts.ini appsmith-playbook.yml --extra-vars "@appsmith-vars.yml"
Ausgabe
PLAY [Configure the self-hosted server] ****************************************
TASK [Gathering Facts] *********************************************************
ok: [192.168.178.75]
TASK [setup-appsmith : Gather the package facts] *******************************
ok: [192.168.178.75]
TASK [setup-appsmith : include_tasks] ******************************************
included: /home/duffy/appsmithinstall/appsmith/deploy/ansible/appsmith_playbook/roles/setup-appsmith/tasks/preflight.yml for 192.168.178.75
.....
RUNNING HANDLER [setup-appsmith : Successful installation message] *************
ok: [192.168.178.75] => {
"msg": "Successful installation. Please open http://192.168.178.75/ to view your instance"
}
PLAY RECAP *********************************************************************
192.168.178.75 : ok=24 changed=11 unreachable=0 failed=0 skipped=4 rescued=0 ignored=1
Nun im Browser http://192.168.178.75/ öffnen