问题描述
即使没有尾随空格,我也对下面的yml代码执行了ansible lint检查,但是我收到了针对已给出的缩进的尾随空格警告。你能建议如何克服这个问题吗?
---
- 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
每行以此类推