Skip to content

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

  1. Package Installation
  2. Uses install_lookup to determine package name
  3. Installs appropriate Apache package

  4. Firewall Configuration

  5. Opens port 80 (HTTP) using iptables
  6. Persists firewall rules

  7. Service Management

  8. Enables Apache service
  9. 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