GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • prod directory
  • Nginx
  • Gunicorn
  • PostgreSQL
  • mac-dev-playbook
  • Docker
  • Sublime Text
  • An Ansible2 Tutorial
  • serverless
  • DevOps from Scratch, Part 1: Vagrant & Ansible
  • How to use Ansible Variables and Vaults
  • How to use Ansible to manage PostgreSQL

This view

  • Original page
  • New address

GeezerVison is showing www.fullstackpython.com — Ansible

Full Stack Python
All topics | Blog | Supporter's Edition | @fullstackpython | Facebook | What's new?

Ansible

Ansible is a configuration management tool used for application deployment and environment setup.

Official Ansible logo. Copyright Redhat.

Example Ansible playbooks

Ansible is far easier to learn when you can read how more full-featured playbooks are built using many tasks. An interesting note from my own experience is that when you get more experienced using Ansible there are many shortcuts in the task syntax so you can often make playbooks that have fewer lines of code than when you were less experienced yet the readability does not suffer.

Check out some of these example playbooks to learn more about how you may be able to structure your playbooks:

  • The prod directory under the Full Stack Python Deployment Guide open source project code contains a full playbook for deploying a standard Nginx, Gunicorn and PostgreSQL stack.

  • mac-dev-playbook configures macOS with various applications and developer tools such as Docker, Homebrew and Sublime Text.

Specific Ansible topics

  • An Ansible2 Tutorial is an incredibly detailed look at how one developer installs and run Ansible.

  • This retrospective from a developer on lessons from using Ansible exclusively for 2 years explains his rationale for choosing Ansible over Puppet and Chef, then goes through several use cases and best practices learned over time with the tool.

  • Using Ansible for deploying serverless applications provides a short overview with an example playbook how Ansible can also be useful for configuring serverless applications.

  • Painless Immutable Infrastructure with Ansible and AWS covers the steps needed for the unique authentication complexities that arise from using Amazon Web Services for your infrastructure.

  • DevOps from Scratch, Part 1: Vagrant & Ansible

  • How to use Ansible Variables and Vaults

  • CI for Ansible playbooks which require Ansible Vault protected variables

  • How to use Ansible to manage PostgreSQL

  • Deploy A Replicated MongoDB instance on AWS with Terraform and Ansible

What's next after automating your deployment?

Can I automate testing and deployments for my app?

I want to learn more about app users via web analytics.

How do I integrate existing web APIs into my application?

Table of Contents

1. Introduction 2. Development Environments 3. Data 4. Web Development 5. Deployment Hosting Servers Static Content CDNs Virtual Private Servers Linode DigitalOcean Lightsail Platform-as-a-Service Heroku PythonAnywhere AWS CodeStar Operating Systems Ubuntu macOS Windows FreeBSD Web Servers Apache HTTP Server Nginx Caddy WSGI Servers Green Unicorn (Gunicorn) mod_wsgi uWSGI Continuous Integration Jenkins GoCD Configuration Management Ansible Salt Containers Docker Kubernetes Serverless AWS Lambda Azure Functions Google Cloud Functions 6. DevOps Changelog What Full Stack Means About the Author Future Directions Page Statuses ...or view the full table of contents.

Full Stack Python

Full Stack Python is an open book that explains concepts in plain language and provides helpful resources for those topics.
Updates via Twitter & Facebook.

Chapters

1. Introduction 2. Development Environments 3. Data 4. Web Development 5. Deployment » Ansible 6. DevOps Changelog What Full Stack Means About the Author Future Directions Page Statuses ...or view the full table of contents.

Matt Makai 2012-2022
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.