How to exclude a certain linenumber of an Ansible playbook when testing it using Molecule? The aim is to exclude a certain line that contains a checksum and cannot be smaller than 80 characters.

--&gt; Scenario: 'default'
--&gt; Action: 'lint'
--&gt; Executing Yamllint on files found in /tmp/ansible-firefox/...
    /tmp/ansible-firefox/defaults/main.yml
      2:81      error    line too long (153 &gt; 80 characters)  (line-length)


defaults/main.yml

firefox_checksum: sha512:49d776cfb5f42c6e5ea1a55a80d9f6bad223080b16baa0d39de63534c25e68340091b4e16be5355d565f81291cb94fb996f03ae7e3e4c7a28021b0a0929daf58
According to the yamllint documentation you need to add a special comment to the line -- &lt;string-to-be-excluded&gt;  # yamllint disable-line rule:line-length

---
#defaults/main
firefox_checksum: sha512:49d776cfb5f42c6e5ea1a55a80d9f6bad223080b16baa0d39de63534c25e68340091b4e16be5355d565f81291cb94fb996f03ae7e3e4c7a28021b0a0929daf58 #yamllint disable-line rule:line-length