A

ansible-roles

Personal ansible roles (domestic network and self-hosted services on LXC infrastructure)

Name Last Update
bind Loading commit data...
borg-common Loading commit data...
borg-server Loading commit data...
borg-ynh-backup Loading commit data...
bouncer Loading commit data...
btrfs Loading commit data...
cifs-client Loading commit data...
cifs-server Loading commit data...
debian-base Loading commit data...
dnsmasq Loading commit data...
haproxy-ip4-proxy Loading commit data...
hostapd Loading commit data...
isso Loading commit data...
jupyter Loading commit data...
jupyterhub Loading commit data...
letsencrypt Loading commit data...
lettravox Loading commit data...
lirc Loading commit data...
lxc-host Loading commit data...
mini-dinstall Loading commit data...
mopidy Loading commit data...
nginx Loading commit data...
pulse-server Loading commit data...
radvd Loading commit data...
router Loading commit data...
rsync-backup-client Loading commit data...
rsync-mirror Loading commit data...
rsync-server Loading commit data...
scanserver Loading commit data...
static-websites Loading commit data...
tor-relay Loading commit data...
transparency Loading commit data...
vpn-client Loading commit data...
ympd Loading commit data...
ynh-onion-admin Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
galaxy-roles Loading commit data...

Ansible Roles

These are my personal ansible roles. I share with joy, and comments are welcome, but I don't intend to make them generic nor perfect for everybody use. They suit my needs.

Oh, and they all are using Debian systems.

They are licensed under the WTFPL, except when another is mentioned inside a role folder (these are external roles I reuse).

Layout

The layout is quite standard, I do not provide defaults for everything but I try to provide a README.md for each, it contains an example site.yml sample.

I use a single folder containing two git repos :

ansible_
├── roles              (that git repo)
└── site               (a private git repo)
    ├── ansible.cfg
    ├── hosts
    ├── site.yml
    └── vault.yml
  • a flat hosts file, containing just the hostnames
  • a single site.yml
  • my ansible.cfg :

    [defaults] roles_path = ../roles hostfile = hosts

External roles

I may use external 3rdparty roles, from ansible galaxy, they are not versioned here, but rather listed in galaxy-roles. To download them, just run :

ansible-galaxy install -p . -r galaxy-roles

You may need to remove the roles folder so that they upgrade if you already have them in an old version (weird behaviour from ansible-galaxy).