Apache Web Server (HTTPD)

Document Control

TODO:

  • Overall structure.
  • Initial draft complete
  • Testing
  • Ready

Ansible Role Ansible Quality Score Build Status GitHub issues GitHub last commit

User Story: Apache Web Server

As a: UNIX and Linux system administrator

I want to: install Apache web server and:

  • httpd configuration file
  • VirtualHosts
  • SSL certificates
  • firewall rules
  • SELinux

So that: automate my web server setup.

Using the role

Using the role in a playbook
---
- name: Install apache
  hosts: all

  tasks:
    - name: apache is configured
      import_role:
        name: crivetimihai.apache
      vars:
        apache_enable_service: true
        apache_copy_templates: true
        apache_firewall_configure: true
        apache_firewall_rules:
          - service: http
          - service: https
      tags: apache
# Install the role
ansible-galaxy install crivetimihai.apache

# Run the playbook
ansible-playbook apache-playbook.yml

Last update: 2020-02-02