I have performed ansible lint check on the below yml code, even though there is no trailing spaces, I'm receiving trailing whitespace warning for the indentation that has been given. Can you advice on how that can be overcome
---
- hosts: localhost
gather_facts: false
tasks:
- block:
- name: Which python is running
command: "which python"
register: result
- name: Debug
debug: var=result.stdout
ansible-lint test.yml
[201] Trailing whitespace
test.yml:1
---
[201] Trailing whitespace
test.yml:2
- hosts: localhost
[201] Trailing whitespace
test.yml:3
gather_facts: false
and so on for each line