The Ansible playbook debugger
Ansible has a debugger built in. Let’s look at how you can build this into your playbook by creating a simple playbook with an error. As we have just mentioned, we are going to write a playbook that uses the community.general.say module. The playbook itself looks like this:
- name: "A simple playbook with a mistake"
hosts: "localhost"
debugger: "on_failed"
vars:
message: "The task has completed and all is well"
voice: "Daniel"
tasks:
- name: "Say a message on your Ansible host"
community.general.say:
msg: "{{ massage }}"
voice: "{{ voice }}" There are two things to point out: the first is the mistake. As you can see...