Jocelyn Delalande's personal ansible roles (domestic network and self-hosted services on LXC infrastructure) https://code.crapouillou.net/jocelyn/ansible-roles
  • Shell 47.5%
  • Perl 26.3%
  • Python 26.2%
Find a file
Jocelyn Delalande c7994cfe23 Transforme deprecateds "include:"
Now called "import_tasks".
2018-02-14 20:16:28 +01:00
bind oops, had gitignored a lot of templates files by accident 2015-02-20 17:32:06 +01:00
borg-common Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
borg-server borg-server: Fix borg program presence check 2016-11-13 12:55:21 +01:00
borg-ynh-backup Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
bouncer bouncer: removed annoying keytsrokes 2015-08-06 15:04:27 +02:00
btrfs btrfs: remove btrfs balance from cron-tasks 2018-01-07 14:12:22 +01:00
cifs-client oops, had gitignored a lot of templates files by accident 2015-02-20 17:32:06 +01:00
cifs-server added a cifs-server role 2015-03-14 01:16:38 +01:00
debian-base Update main.yml 2017-09-18 18:37:03 +02:00
dnsmasq dnsmasq: Mitigate CVE-2015-7547 2016-02-16 21:56:41 +01:00
haproxy-ip4-proxy fixed virtualhosts for non-https hosts 2015-07-20 21:36:22 +02:00
hostapd hostapd: added a comment on wme/wmm 2015-09-24 00:58:18 +02:00
isso isso: switch to Debian Jessie 2016-11-21 14:56:08 +01:00
jupyter jupyter: add role 2017-01-09 23:00:23 +01:00
jupyterhub Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
letsencrypt letsencrypt: Syncs the doc with reality 2017-10-19 19:24:59 +02:00
lettravox lettravox: expose DEFAULT_FROM_EMAIL for customization 2018-01-25 08:39:38 +01:00
lirc lirc: added role 2016-01-07 15:32:37 +01:00
lxc-host lxc-host: Add an option to delete a container 2016-11-09 23:02:28 +01:00
mini-dinstall added mini-dinstall role 2015-07-26 00:00:14 +02:00
mopidy Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
munin-node Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
nginx nginx: Document the role 2017-10-19 19:22:16 +02:00
pulse-server pulse role requires avahi announcements 2015-04-06 18:44:57 +02:00
radvd radvd is no longer starting if perms are not the right ones on config file 2015-03-09 23:11:34 +01:00
router router: Add possibility of native IPv6 routing 2017-07-15 18:35:28 +02:00
rsync-backup-client Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
rsync-mirror rename "sudo*" → "become*" 2016-05-17 11:24:08 +02:00
rsync-server rsync-server: Add ability to cleaup old backup clients 2016-11-09 23:39:52 +01:00
scanserver Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
static-websites Adapt playbook for Django v1.6 version of lettravox 2016-01-03 22:01:10 +01:00
tor-relay Moved relayor to propper subdir 2016-02-02 21:18:43 +01:00
transparency rename "sudo*" → "become*" 2016-05-17 11:24:08 +02:00
vpn-client typo in config file for vpn post-up script 2015-09-10 09:44:03 +02:00
ympd ympd: add forgotten dependency 2017-04-14 13:42:39 +02:00
ynh-onion-admin Transforme deprecateds "include:" 2018-02-14 20:16:28 +01:00
.gitignore oops, had gitignored a lot of templates files by accident 2015-02-20 17:32:06 +01:00
galaxy-roles Upgrade Ginsys.seafile galaxy role to 4.4 2016-11-13 11:41:41 +01:00
README.md Upgrade Ginsys.seafile galaxy role to 4.2.1 2016-11-05 11:25:20 +01:00

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).