GitXplorerGitXplorer
d

ansible-project-bootstrap

public
66 stars
11 forks
0 issues

Commits

List of commits on branch master.
Unverified
e5ae0b3a7c79c41ce93549214a7fc60b1f90a22f

use puma only

ddcrec1 committed 5 years ago
Unverified
d685d7eb8c7392270f240cecd558852f0b166149

update roles to Rails 6

ddcrec1 committed 5 years ago
Unverified
653cfc3f82449f88c38731a825dc99e80dd895f8

remove inventory folder

ddcrec1 committed 5 years ago
Unverified
a4aa2cb310b0b69b8a80d9d3c4c7fe298375b065

upgrade to node 12.14

ddcrec1 committed 5 years ago
Unverified
a21a89be625d2600b716bd6bffddf9505c02ba79

install python before node

ddcrec1 committed 5 years ago
Unverified
8869d1efc30d04a306388a5f8326d676936a6e4d

update git role

ddcrec1 committed 5 years ago

README

The README file for this repository.

Use this repository as a bootstrap for your organization custom Ansible project.

In case you're new to Ansible, I added some demo playbooks to understand how you should do things. You should configure your inventory and then run the playbooks like this:

ansible-playbook -i inventory/production/demo provision_demo.yml

You can watch a demo here.

The content of this project was created following the Ansible best practices:

https://docs.ansible.com/playbooks_best_practices.html#content-organization

Recommended usage

  1. Clone this project to a private repository and use it to version your organization infraestructure. You can name the repository something like infra or provisioning.

  2. For each application, create a playbook and an inventory (use the demo files as examples).

  3. Use the existent roles or create new ones, remove tasks that you don't need and add tasks you need, know what the roles are doing and keep things simple.

Included roles

  • deploy (creates a deploy specific user and copies ssh keys)
  • dev (installs common packages like autoconf and build essentials)
  • git
  • grafana
  • imagemagick
  • influxdb
  • jenkins
  • jre
  • mysql-client
  • mysql-server
  • nginx
  • nodejs
  • phantomjs
  • postgresql-client
  • postgresql-server
  • puma
  • rails
  • rails-deploy
  • redis
  • ruby
  • sidekiq
  • unicorn