fubarhouse.commons
Ansible Role: Commons
The purpose of this role is to consolidate all common behaviors/tasks used frequently by fubarhouse Ansible roles. Over time every role using a piece of this role will use this role. All functionality is segregated by logic.
- Sets
fubarhouse_userfor usage with Ansible roles authored by fubarhouse. - Sets
apache2_is_installedandnginx_is_installedfor usage with Ansible roles authored by fubarhouse. - Ensures
conf.d,sites-availableandsites-enabledfolders are created for eitherapache2ornginxweb servers. - Creates virtual hosts fed through a proxy to localhost:port from a simple array.
- Makes sure apache2 proxy modules are enabled on RedHat/CentOS/REHL systems.
- Webserver roles
geerlingguy.apacheandgeerlinguy.nginxare no longer included.
Requirements
- none
Role Variables
Choose a webserver (only apache2 or nginx for now)
fubarhouse_webserver: nginx
To add proxy-based virtual hosts (web services on a port)
fubarhouse_vhosts:
- name: myservice
domain: "myservice.dev"
docroot: /opt/myservice
port: 3000
Dependencies
None.
Example Playbook
- hosts: localhost
roles:
- fubarhouse.commons
License
MIT / BSD
Author Information
This role was created in 2016 by Karl Hepworth.
About
Assists ansible roles written by the same author with common functionalty and variable declarations.
Install
ansible-galaxy install fubarhouse.commonsLicense
mit
Downloads
2k
Owner
I love open source, and computers - both hardware and software. Privacy advocate. Any opinions outside of official communications and representation are my own.
