Skip to content
sample Ansible configuration
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
group_vars
handlers
roles
tasks
templates
vars
.gitignore
README.md
Vagrantfile
all.yml
database.yml
hosts
playbook.yml
proxy.yml
requirements.yml
starsdb.yml
vagrant.yml
vpn.yml

README.md

Ansible configuration

Ansible configuration for single page app and accompanying backend server.

To install ansible dependencies:

ansible-galaxy install -r requirements.yml

To test out this playbook you can use vagrant:

  • change Vangrantfile and specify which role you want to deploy
  • vagrant up will start the box and provision it
  • vagrant up will provision again

To install it on servers use:

ansible-playbook -i hosts playbook.yml --vault-password-file=~/.vault_pass.txt

This playbook show cases:

  • setting up nginx server
  • setting up account for deployments
  • remote syslog to papertrail
  • letsencrypt certificates generation
  • swap file creation
  • runit configuration
  • rbenv configuration
  • using encrypted vaults
You can’t perform that action at this time.