This guide prepares a classic ISPConfig stack with web, mail, and database dependencies.
- name: Install ISPConfig prerequisites on Debian family
hosts: ispconfig_debian
become: true
tasks:
- name: Install dependencies
ansible.builtin.apt:
update_cache: true
name:
- apache2
- mariadb-server
- php
- php-mysql
- php-xml
- postfix
- dovecot-core
- pure-ftpd-common
- bind9
- wget
- unzip
state: present
- name: Download ISPConfig installer
ansible.builtin.get_url:
url: https://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
dest: /root/ISPConfig-3-stable.tar.gz
mode: "0644"
- name: Extract ISPConfig installer
ansible.builtin.unarchive:
src: /root/ISPConfig-3-stable.tar.gz
dest: /root
remote_src: true
- name: Run ISPConfig installer in unattended mode
ansible.builtin.command: php -q install.php --unattended
args:
chdir: /root/ispconfig3_install/install
failed_when: false
- name: Install ISPConfig prerequisites on RHEL family
hosts: ispconfig_rhel
become: true
tasks:
- name: Install dependencies
ansible.builtin.dnf:
name:
- httpd
- mariadb-server
- php
- php-mysqlnd
- php-xml
- postfix
- dovecot
- pure-ftpd
- bind
- wget
- tar
state: present
failed_when: false
ansible-playbook -i inventory.ini ispconfig-install.yml
ispconfig_debian.Beyond this playbook, we offer:
Contact our automation team: office@linux-server-admin.com