EHCP is a legacy panel and is generally Debian/Ubuntu-focused.
- name: Install EHCP on Debian family
hosts: ehcp_debian
become: true
vars:
ehcp_install_url: "https://github.com/ehcp/ehcp-installer/raw/master/install.sh"
tasks:
- name: Install dependencies
ansible.builtin.apt:
update_cache: true
name:
- apache2
- mariadb-server
- php
- php-mysql
- curl
state: present
- name: Download EHCP installer
ansible.builtin.get_url:
url: "{{ ehcp_install_url }}"
dest: /root/ehcp-install.sh
mode: "0755"
failed_when: false
- name: Run EHCP installer
ansible.builtin.command: /root/ehcp-install.sh
args:
creates: /var/www/new/ehcp
failed_when: false
- name: EHCP precheck for RHEL hosts
hosts: ehcp_rhel
become: true
tasks:
- name: Warn about unsupported RHEL path
ansible.builtin.debug:
msg: "EHCP is not a preferred panel on RHEL; use alternatives like Webmin, Cockpit, or ISPConfig."
ansible-playbook -i inventory.ini ehcp-install.yml
ehcp_debian.We develop tailored automation solutions for:
Let’s discuss your requirements: office@linux-server-admin.com | Contact