Problem scenario
You want to see if an Ansible playbook is injecting (or leaving) two braces, “{{” or “}}”, in a specific file on Linux. These symbols can be injected accidentally with little notification. Variable substitution could fail during the course of a playbook run. This is a subtle problem that may have no alert. You want some debugging to check for these symbols. How do you know a file on a managed node does not have a “{{” or “}}”?
…
Continue reading “Using Ansible How Do You Search The Contents of a File on Linux for “{{” or “}}”?”