https://github.com/archf/ansible-masterbook
https://github.com/archf/ansible-masterbook
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/archf/ansible-masterbook
- Owner: archf
- Created: 2015-03-05T01:03:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-02T22:13:27.000Z (over 9 years ago)
- Last Synced: 2025-01-24T19:16:48.798Z (over 1 year ago)
- Language: Ruby
- Homepage: https://archf.github.io/ansible-masterbook
- Size: 1.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Masterbook
# Prerequisite
Install git and ansible on the control machine:
Via script:
```bash
curl -s https://raw.githubusercontent.com/archf/ansible-masterbook/master/ansible-bootstrap.sh | sh
```
Or manually:
```bash
# Debian
apt-get -y install git ansible
# rhel
sudo yum -y install git ansible
# or
sudo dnf install -y git ansible
```
Alternatively you could install from a unbuntu ppa or from pip to get a most recent version
## list of quite stable roles
* common: meta roles for roles below
- accounts
- packages
- openssh-server
- ntpd
- resolv
* fail2ban
* ntp
* disable selinux
* accounts: create accounts on any machine (requires root)
* workstation: install package for daily work (this could be splitted eventually)
* python
* golang
* rust
* ...
Currently installs:
- python3-ipython
- python3-ipdb
- python3-devel
- python-pip
- inotify-tools-devel
- pandoc
- urlview
* workstation
* openssh: template sshd-config
s samba: configure a simple samba file server
wip:
* backup
* collectd
* ansiblecm: install and configure an ansible control machine
* network: configure nic on a target
* openWrt
* multimedia: install multimedia packages
todo soon:
* git-install: install from a git repo
* tar-install: install from a tarball
* dnsmasq: install and configure dnsmasq
## interesting roles from other people
* gitlab: https://galaxy.ansible.com/list#/roles/516
* exim: https://galaxy.ansible.com/list#/roles/4842
* grafana: https://github.com/azavea/ansible-grafana
* influxdb:
## Todo:
### roles to find or create
* remote-desktop
* ansible: install and configure ansible
* postgress
* powerdns-recursor
* powerdns-authoritative
* collectd or python-diammond
* influx-db
* graphite or graphana
* kodi
* wikia
* shinken or nagios
* vagrant - install vagrant from website
* ldap
* redmine
* cobbler
- make a special case to install to openwrt from source
* multimedia: install music or video package
- vlc
- asunder
- easytag
* pythondev:
* golangdev:
* rustdev:
### ad-hoc roles
* dotfiles: update given repos on all targets
* accounts-remove: remove given accounts on all targets
### other tasks
* ntp
* fqdn
* disk partionning (lvm)
* backup (script from a git repo + cronjob) – one for the os and the other for
* the data
* tmpfs (mount /tmp in a tmpfs when there is enough ram ??? i think this doesn't allow
you to suspend to ram)
# Thoughts
## Some roles should be executed on all machines by default
ex:
* common
* accounts
* fail2ban
* shinken or nagios
* backup: install backup scripts
* collectd or python-diammond
* suspend_ram: cronjob to suspend machine to ram