This is my Ansible repo. There are many like it, but this one is mine.
Ansible is a great tool to wrap [mostly] idempotent ad-hoc tasks into code with minimal effort. This repository is contains the meat I have used in a personal capacity to get things done.
These playbooks are very opinionated. I tend to prefer CentOS 6.x, and these playbooks reflect that.
Also I eschew pain where it is unnecessary, hence the gtfo of selinux and iptables. Sorry.
This originally started as the following:
I have a freshly kickstarted host sitting on the wire with root passwd login ... how can I lay a Plex config on this thing as quickly, data-driven, and idempotently as possible?
Hence this repo.
You can let these roles loose ad-hoc via an: ansible-playbook -u root -k -i 192.168.1.10, main.yml
I have tried to make things as both modular and data-driven as possible so as to promote reuse.
| Role | Description |
|---|---|
| selinux | Mic drops selinux and reboots your host given the change. |
| firewall | Also drops iptables to the floor. |
| epel | Does the needful to setup EPEL as a yum repo. |
| base-bootstrap | Wraps up errata which isnt encompassed by other playbooks, mostly just yum packages. |
| git-client | Sets up a local git client, including caching github.com keys for root. |
| runit | Sets up a runit instance using Ian Meyer's awesome packagecloud.io runit repo. |
| hostname | Sets up a very opinionated hostname. |
| mount | Bootstraps mounting my Drobo over CIFS |
| plex | Pulls down a versioned PlexPass RPM. |
| sabnzbd | Clones a versioned tag from GitHub of SABnzbd code. Depends upon runit role. |
| sickbeard | Also clones a versioned tag from GitHub of Sick-Beard code. Leveraged runit role. |
| couchpotato | You guessed it. This role clones a versioned tag from GitHub of CouchPotato code. Supported via runit. |
- Author: Nick Silkey [email protected]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and