Ansible: Up and Running: Automating Configuration Management and Deployment the Easy WayAmong the many configuration management tools available, Ansible has some distinct advantages—it’s minimal in nature, you don’t need to install anything on your nodes, and it has an easy learning curve. This practical guide shows you how to be productive with this tool quickly, whether you’re a developer deploying code to production or a system administrator looking for a better automation solution. Author Lorin Hochstein shows you how to write playbooks (Ansible’s configuration management scripts), manage remote servers, and explore the tool’s real power: built-in declarative modules. You’ll discover that Ansible has the functionality you need and the simplicity you desire.
|
Contents
Chapter 1 Introduction | 1 |
A Beginning | 21 |
Describing Your Servers | 45 |
Chapter 4 Variables and Facts | 69 |
Our Test Application | 83 |
Chapter 6 Deploying Mezzanine with Ansible | 89 |
Chapter 7 Complex Playbooks | 121 |
Scaling Up Your Playbooks | 147 |
Chapter 12 Amazon EC2 | 203 |
Chapter 13 Docker | 237 |
Chapter 14 Debugging Ansible Playbooks | 263 |
Appendix A SSH | 273 |
Appendix B Default Settings | 283 |
Appendix C Using IAM Roles for EC2 Credentials | 289 |
Glossary | 293 |
297 | |
Other editions - View all
Common terms and phrases
agent forwarding Amazon EC2 Ansible ansible-playbook ansible.cfg Ansible’s AnsibleModule arguments chapter check mode command command-line configuration file configuration management connection control machine copy create database debug default defined dest dictionary Django Docker images dynamic inventory script EC2 instance enable encrypted environment variables execute fact caching false GitHub Gunicorn host key hostname idempotent instance_type inventory file invoke IP address Jinja2 JSON Linux localhost look lookup Memcached Mezzanine module name=nginx nginx config file OpenSSH output parameter password playbook port Postgres proj_name proj_path Python Python packages remote host repository restart nginx role security group server shown in Example specify SSH multiplexing string sudo tags task tell Ansible template testserver there’s TLS certificate tool True TXT record Ubuntu ubuntu/trusty64 Unix domain socket Vagrant machine Vagrantfile venv_path virtual machine virtualbox virtualenv web server webservers with_items YAML