apache-install¶
Creates and configures Apache's default index page
Apache Install Task¶
This task manages the installation of Apache Web Server, configures firewall rules, and ensures the service is enabled and running. It uses the install_lookup
function to determine the correct package name for the target operating system.
Requirements¶
- Supported operating system
- Network access to package repositories
- Root/sudo access for installation
Components¶
- Package Installation
- Uses install_lookup to determine package name
-
Installs appropriate Apache package
-
Firewall Configuration
- Opens port 80 (HTTP) using iptables
-
Persists firewall rules
-
Service Management
- Enables Apache service
- Starts Apache service
Integration Points¶
- Uses apache/packages parameter
- Works with apache-configure task
- Supports universal-runbook workflow
Firewall Configuration¶
The task performs the following firewall configurations: 1. Adds ingress rule for port 80/tcp 2. Saves iptables configuration 3. Ensures rules persist across reboots