Security Automation with Ansible 2, published by Packt
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Chapter01 Code Files Added Dec 14, 2017
Chapter02 Code Files Added Dec 14, 2017
Chapter03 Code Files Added Dec 14, 2017
Chapter04 Code Files Added Dec 14, 2017
Chapter05 Code Files Added Dec 14, 2017
Chapter06 Code Files Added Dec 14, 2017
Chapter07 Code Files Added Dec 14, 2017
Chapter08 Code Files Added Dec 14, 2017
Chapter09 Code Files Added Dec 14, 2017
Chapter10 Code Files Added Dec 14, 2017
Chapter11 Code Files Added Dec 14, 2017
LICENSE Initial commit Dec 8, 2017
README.md Update README.md Jul 2, 2018

README.md

Security Automation with Ansible 2

This is the code repository for Security Automation with Ansible 2, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Security automation is one of the most interesting skills to have nowadays. Ansible allows you to write automation procedures once and use them across your entire infrastructure. This book will teach you the best way to use Ansible for seemingly complex tasks by using the various building blocks available and creating solutions that are easy to teach others, store for later, perform version control on, and repeat.

We’ll start by covering various popular modules and writing simple playbooks to showcase those modules. You’ll see how this can be applied over a variety of platforms and operating systems, whether they are Windows/Linux bare metal servers or containers on a cloud platform. Once the bare bones automation is in place, you’ll learn how to leverage tools such as Ansible Tower or even Jenkins to create scheduled repeatable processes around security patching, security hardening, compliance reports, monitoring of systems, and so on.

Moving on, you’ll delve into useful security automation techniques and approaches, and learn how to extend Ansible for enhanced security. While on the way, we will tackle topics like how to manage secrets, how to manage all the playbooks that we will create and how to enable collaboration using Ansible Galaxy. In the final stretch, we’ll tackle how to extend the modules of Ansible for our use, and do all the previous tasks in a programmatic manner to get even more powerful automation frameworks and rigs.

Instructions and Navigation

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

- name: update the hardened nginx configuration changes
template:
src: "hardened-nginx-config.j2"
dest: "/etc/nginx/sites-available/default"
notify:
- restart nginx

Ansible is a tool written in Python2. For control machines, if Python2 is installed with the minimum version 2.6, you are good to go. Since Ansible 2.2 onwards, Python3 is supported as a tech preview.

Related Products