Here is my personal Ansible roles collection accumulated for 2 years experience.
- apache
- aws-codedeploy-agent
- aws-ecs-agent
- aws-efs
- consul
- docker
- dropbox
- elasticsearch
- Java role is not used by default (switch this on setting
java_setup=True
) - Java role works only for deb version and still not correctly yet
- Java role is not used by default (switch this on setting
- elk
- Java role is not used by default (switch this on setting
java_setup=True
) - Java role works only for deb version and still not correctly yet
- Nginx role fetched from this collection (ELK virtual host included)
- Java role is not used by default (switch this on setting
- fail2ban
- Oriented to Nginx logs jail by default
mail_relay
role included
- filebeat
- Oriented to Nginx shipping jail by default
- You can set the ELK server at
filebeat\defaults\main.yml
- grafana
- Nginx role fetched from this collection (monitoring virtual host included, also Prometheus locations on vhost)
- graylog
- Embedded Elasticsearch and MongoDB installation (by default Elasticsearc version is 2.4.4, cause for now Graylog doesn't work with 5.x)
- Nginx role fetched from this collection (Graylog virtual host included)
- java-oracle
- Oracle license troubles - will be fixed in the future
- jenkins
- Java role for Deb installation doesn't work correctly yet (switched off by default)
- Nginx role fetched from this collection (Jenkins virtual host included)
- kubernetes
- Includes only cluster node setup; master may be configured, but cluster initialization is not automated yet
- Shipped with Weave.net CLI
- mail_relay
- You can set the mail server and test mail destination by variables at
mail_relay\defaults\main.yml
- You can set the mail server and test mail destination by variables at
- maintenance
- Role includes system settings setup, hostname setup, users configuration (customized by variables), CLI tools provisioning and netfilter setup with IPtables rules
- Netfilter tasks set is only available on Ubuntu
- mediawiki
- memcached
- mysql
- nginx
- nomad
- opendkim-postfix
- ossec
- percona
- php
- postgresql
- prometheus
- redis
- tarantool
- vsftpd
- wordpress
- yii
- zabbix-agent
Not yet. Some roles are targeted only to local infrastructure, so it must be rewritten. Some roles have written terribly and must be refactored. I'll append the label approved when any will be ready.
Use them in playbook.
- Playbook example
---
- hosts:
- example_host
sudo: yes
gather_facts: yes
vars_files:
- host_vars/all.yml
roles:
- example_role
- Playbook run example
ansible-playbook -i [your_hosts_file] example.yml --tags=[include_tags] --skip-tags=[exclude_tags]
Get familiar with Ansible Galaxy and publish some of these roles.