Ansible Role to provision Apache2 sites
Go to file
AnsibleGuy 4875e6ef1f init 2021-11-02 22:06:52 +01:00
defaults init 2021-11-02 22:06:52 +01:00
filter_plugins init 2021-11-02 22:06:52 +01:00
meta init 2021-11-02 22:06:52 +01:00
tasks init 2021-11-02 22:06:52 +01:00
templates init 2021-11-02 22:06:52 +01:00
LICENSE.txt init 2021-11-02 22:06:52 +01:00
README.md init 2021-11-02 22:06:52 +01:00
playbook.yml init 2021-11-02 22:06:52 +01:00
requirements.yml init 2021-11-02 22:06:52 +01:00

README.md

Apache2 Ansible Role

Ansible role to install apache2 sites on the target server.

Tested:

  • Debian 11

Functionality

  • Package installation
    • Ansible dependencies (minimal)
    • Apache2
  • Configuration *
    • Default opt-in: *
    • Default opt-outs: *
    • Default config: *

Info

  • Note: Most of this functionality can be opted in or out using the main defaults file and variables!

  • Note: this role currently only supports debian-based systems

Requirements

  • Community collection: ansible-galaxy install -r requirements.yml

Usage

Run the playbook:

ansible-playbook -K -D -i inventory/hosts.yml playbook.yml

You need to define your instances by configuring the 'mariadb' dictionary!

apache

There are also some useful tags available:

  • base => only configure basics; sites will not be touched
  • sites
  • config => configuration (base and instances)
  • certs