Skip to content

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

License

Notifications You must be signed in to change notification settings

frjo/ansible-roles

Repository files navigation

Ansible roles

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

  • Requires Ansible 2.8.x
  • Expects Debian 10 Buster 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

Notice: Still only tested for Drupal 9 hosts

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.

UniFi Controller

Run the UniFi Controller on a Raspberry Pi (Raspian). Tested with Raspberry Pi 3 and 4 Model B. Since it's a Java application that needs some RAM I would not run in on anything smaller.

Remember to open up tcp ports 6789, 8080 and 8443 as well as udp port 3478 to allow the controller to communicate with the access points.

Wireguard (VPN)

Install and setup a Wireguard VPN server with a number of client accounts (20 by default). The account information, including a handy QR code in PNG format, is downloaded at the end.

Read more in my blog post Using Ansible to setup a WireGuard VPN server on Debian 9.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published