Member-only story
Indentation error — Ansible troubleshooting
Indentation errors are one of the most common Ansible problems. In a live demo, we are going to troubleshoot starting from the error message. We are going to investigate the root cause of the problem and fix it.
3 min readAug 7, 2021
Today we’re going to talk about Ansible troubleshooting and specifically about indentation errors.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot
Demo
The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the error and how to solve it!
Error
---
- name: blockinfile module demo
hosts: all
become: true
tasks:- name: Generate /etc/hosts file
ansible.builtin.blockinfile:
state: present
dest: /etc/hosts
content: |…