Category Archives: Ansible

Ansible variables

Ansible tutorial – part 4

In this part we will focus on Ansible variables. How to use them in playbooks, tasks and templates. What is the purpose of variables in Ansible? Imagine the situation where you have two servers. On each of them you need to install nginx. But each server requires a bit different configuration. Let’s take simplest case – […]

Ansible templates and handlers

Ansible tutorial – part 3

In this part we will use templates and handlers in Ansible. Ansible templates Templates are simple text files that we can use in Ansible. Most of the time you will use them to replace configuration files or place some documents on the server. Start from creating new directory inside our nginx role and name it […]

ansible-tasks

Ansible tutorial – part 2

This is part 2 of Ansible tutorial. In this part you will learn how to create playbooks, what are roles and tasks and how to use privileges escalation in Ansible. Playbooks Playbooks are essential feature of Ansible. In Playbooks we specify what and how our server will be configured and provisioned. Go to our directory that […]

Ansible tutorial - part 1

Ansible tutorial – part 1

What you will learn in part 1 of this tutorial? What is Ansible? How to install Ansible on Windows/Linux/MacOS? How to prepare test environment for Ansible? Intro to Inventory files. First connection to the server. First thing first – what is Ansible? Ansible is a simple yet powerful tool for configuration management and orchestration of your […]