# "What is Ansible?" post - giving me errors

**URL:** <https://forum.freecodecamp.org/t/what-is-ansible-post-giving-me-errors/797542>\
**Category:** I Love Programming\
**Created:** [August 12, 2026, 7:17pm UTC](https://forum.freecodecamp.org/t/what-is-ansible-post-giving-me-errors/797542 "2026-08-12T19:17:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aeron.jarrett](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aeron.jarrett/32/419845_2.png) [@aeron.jarrett](https://forum.freecodecamp.org/u/aeron.jarrett)\
**Post date:** [August 12, 2026, 7:17pm UTC](https://forum.freecodecamp.org/t/what-is-ansible-post-giving-me-errors/797542/1 "2026-08-12T19:17:25Z")

</div>

URL: [What is Ansible? A Tool to Automate Parts of Your Job](https://www.freecodecamp.org/news/what-is-ansible/)

I’m attempting the “make an Ansible playbook” section with a modiffication to NOT install docker; Simply trying to capture the output of an echo command. However, I get an error which might be syntax. Has anyone completed this particular New article’s tutorial? Have you used Ansible’s “debug” feature successfully to output a variable?

---

<div class="post-metadata">

**Author:** ![aeron.jarrett](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aeron.jarrett/32/419845_2.png) [@aeron.jarrett](https://forum.freecodecamp.org/u/aeron.jarrett)\
**Post date:** [August 12, 2026, 8:26pm UTC](https://forum.freecodecamp.org/t/what-is-ansible-post-giving-me-errors/797542/2 "2026-08-12T20:26:25Z")

</div>

@**[Idris Olubisi](https://www.freecodecamp.org/news/author/olanetsoft/) -** I think I have identified my problem.

The presentation of the YAML code in the article’s code blocks DOES NOT faithfully render the syntax. By this I mean the indentation which YAML requires is not visually obvious. I will attempt to demonstrate my meaning below:

**the faulty provided code:**

```auto
- name: Test Docker with hello world example
become: true
shell: docker run hello-world
register: hello_world_output

- name: Show output of hello word example
debug: #use debug module
msg: "Container Output: {{hello_world_output.stdout}}"`

```

ERROR: Every line is fully left-justified

**the valid code:**

```auto
- name: Test Docker with hello world example
  become: true
  shell: docker run hello-world
  register: hello_world_output

- name: Show output of hello word example
  debug: #use debug module
    msg: "Container Output: {{hello_world_output.stdout}}"

```

This is a snip from the sample code, so as-is it is not going to be accepted by the ansible-playbook processor; it just shows the proper indentation.

I hope this helps anyone else who attempts to follow that article. Soon, I will try to implement it as-is in an environment where I can freely install docker!

Happy coding!

---

<div class="post-metadata">

**Author:** ![scissorsneedfoodtoo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/scissorsneedfoodtoo/32/417618_2.png) [@scissorsneedfoodtoo](https://forum.freecodecamp.org/u/scissorsneedfoodtoo)\
**Post date:** [October 26, 2026, 4:47am UTC](https://forum.freecodecamp.org/t/what-is-ansible-post-giving-me-errors/797542/3 "2026-10-26T04:47:07Z")

</div>

Thanks for your patience @aeron.jarrett, and for bringing this to our attention.

I went through the post at [What is Ansible? A Tool to Automate Parts of Your Job](https://www.freecodecamp.org/news/what-is-ansible/) and fixed the indentation in the Ansible playbook example toward the end. The fixes should go live after the next build in a few hours.

If you notice any other issues in this post, please let us know.
