Here are some Ansible roles I have built for my own use.
Shell Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Ansible roles

Here are some Ansible roles I have built for my own use.

  • Requires Ansible 2.x
  • Expects Debian 9 hosts

Common

Common configurations including things like firewall, dns and ntp. I add this role to all my playbooks, hence the name.

Wrote a bit about it in My first 2 minutes on a server - letting Ansible do the work.

Common Pi

Common configurations for Raspberry Pi (Raspian) including things like firewall, dns and ntp. I add this role to all my Raspberry Pi playbooks, hence the name.

It uses busybox to log only to memory and disables swap. This should make the SD card last longer.

If used with "Security camera" below please remember to add the motion streaming port to the openports_list.

Letsencrypt

Create a Letsencrypt cert with the help of the acme-tiny script. Includes a cron script for automatic renewal.

Read more in my blog post Let's Encrypt my servers with acme tiny.

Mail server

A mail server built with postfix and dovecot. Support multiple domains and virtual mailboxes and aliases in a sql database. Administration via the postfix admin web interface.

Use together with the common and dbserver roles.

Provides a Apache vhost conf file as well but you need to install Apache separately.

Read more in by blog post Run your own mail server with Postfix and Dovecot.

Mail relay och MX backup

Creates servers for Mail relay och MX backup service using Debian 9 and Postfix.

Read more in my blog post Mail relay, MX backup and spam filtering with Postfix.

DB Server (MariaDB)

Database server with local backup. MariaDB is a drop in replacement for MySQL and is run by the people who originally created MySQL, before is was bought by Sun and then swallowed up by Oracle.

Security camera

Creates a security camera with a Raspberry Pi (Raspian), the Raspberry Pi Camera and Motion. Tested with Raspberry Pi 3 Model B and Zero W with the Raspberry Camera v2.