Chapter 2. Ad Hoc Tasks with Ansible

In this chapter, we are going to cover the following recipes:

  • Installing an Ansible control node on Ubuntu
  • Installing an Ansible control node on CentOS
  • Creating an Ansible inventory
  • Using the raw module to install python-simplejson
  • Installing packages with Ansible
  • Restarting services using Ansible
  • Executing freeform commands with Ansible
  • Managing users with Ansible
  • Managing SSH keys with Ansible

Introduction

There is a growing number of automation tools available to DevOps Engineers, each with its individual strengths and weaknesses. Puppet, Chef, SaltStack, Ansible; the list seems to grow on a daily basis, as do the capabilities that they offer. Configuration management has become one of the core techniques that help ...

Get Learning DevOps: Continuously Deliver Better Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.