Skip to content

Repository files navigation

Test deployment

Port of geekoops-nginx to apache2

Configurable ansible role for setting up an apache2 webserver on a Linux server. Works with

  • openSUSE Leap 15.4 -> tested
  • Debian Buster
  • Debian Bookworm

Role Variables


You can set the following variables to configure the role. Here listed are the variables and their default settings.

Firewall configuration (disable by default)

ValueDescriptionDefault
config_firewallEnable firewall configurationfalse
firewall_zoneFirewall zone to configure"public"
open_httpOpen http porttrue
open_httpsOpen https porttrue
setup_default_pageSetup a default pagefalse
default_page_hostnameHostname for the default page"localhost"

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: jellyfish
roles:
- { role: geekoops-apache, config_firewall: true }

An advanced example for the imaginary jellyfish test server

- hosts: jellyfish
roles:
- role: geekoops-apache
vars:
setup_default_page: true
default_page_hostname: "{{ansible_host}}"
config_firewall: true
firewall_zone: "public"

License

MIT

Development

Add githooks

This repository ships pre-commit git hooks that will check the yaml syntax. To configure them do

git config --local core.hooksPath .githooks/

Releases

Packages

Contributors

Languages