This guide installs HESK with Apache, PHP, and MariaDB.
It supports Debian 10 to latest stable, Ubuntu LTS, and RHEL 9+ compatible systems.
- name: Install HESK
hosts: hesk
become: true
vars:
hesk_webroot: /var/www/hesk
tasks:
- name: Install dependencies on Debian/Ubuntu
apt:
name:
- apache2
- mariadb-server
- php
- php-mysql
- php-mbstring
- php-xml
- php-curl
- php-zip
- php-gd
- unzip
- wget
- curl
- git
state: present
update_cache: true
when: ansible_os_family == "Debian"
- name: Install dependencies on RHEL family
dnf:
name:
- httpd
- mariadb-server
- php
- php-mysqlnd
- php-mbstring
- php-xml
- php-curl
- php-zip
- php-gd
- unzip
- wget
- curl
- git
state: present
when: ansible_os_family == "RedHat"
- name: Enable and start required services
service:
name: "{{ item }}"
state: started
enabled: true
loop:
- "{{ 'apache2' if ansible_os_family == 'Debian' else 'httpd' }}"
- mariadb
- name: Create HESK web root
file:
path: "{{ hesk_webroot }}"
state: directory
mode: "0755"
- name: Download HESK archive
get_url:
url: https://www.hesk.com/download/hesk_latest.zip
dest: /tmp/hesk.zip
mode: "0644"
- name: Extract HESK
unarchive:
src: /tmp/hesk.zip
dest: "{{ hesk_webroot }}"
remote_src: true
Any questions?
Feel free to contact us. Find all contact information on our contact page.