install_apache_ansible is an Ansible role that automatically installs and enables the Apache web server on remote systems. It detects whether the target machine is Debian-based or Red Hat–based and installs the correct package (apache2 or httpd) accordingly. The role requires only SSH access—ideally with key-based authentication and passwordless sudo—and quickly sets up a ready-to-use Apache server with no extra dependencies.