You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible installation method: one of source, pip, OS package
ansible-lint installation method: one of source, pip, OS package
STEPS TO REPRODUCE
$ ansible-lint --write ansible-for-devops Traceback (most recent call last): File "/home/ttakamiy/.local/bin/ansible-lint", line 8, in <module> sys.exit(_run_cli_entrypoint()) File "/home/ttakamiy/.local/lib/python3.9/site-packages/ansiblelint/__main__.py", line 317, in _run_cli_entrypoint sys.exit(main(sys.argv)) File "/home/ttakamiy/.local/lib/python3.9/site-packages/ansiblelint/__main__.py", line 281, in main _do_transform(result, options) File "/home/ttakamiy/.local/lib/python3.9/site-packages/ansiblelint/__main__.py", line 192, in _do_transform transformer.run() File "/home/ttakamiy/.local/lib/python3.9/site-packages/ansiblelint/transformer.py", line 98, in run ruamel_data = yaml.loads(data) File "/home/ttakamiy/.local/lib/python3.9/site-packages/ansiblelint/yaml_utils.py", line 931, in loads data = self.load(stream=text) File "/home/ttakamiy/.local/lib/python3.9/site-packages/ruamel/yaml/main.py", line 426, in load return constructor.get_single_data() File "/home/ttakamiy/.local/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 111, in get_single_data node = self.composer.get_single_node() File "/home/ttakamiy/.local/lib/python3.9/site-packages/ruamel/yaml/composer.py", line 75, in get_single_node raise ComposerError(ruamel.yaml.composer.ComposerError: expected a single document in the stream in "<unicode string>", line 5, column 1: kind: ClusterRole ^ (line: 5)but found another document in "<unicode string>", line 29, column 1: --- ^ (line: 29)
Desired Behavior
Possible security bugs should be reported via email to [email protected]
Actual Behavior
The --write option should be able to handle them w/o throwing errors.
The text was updated successfully, but these errors were encountered:
According to that issue, Ansible does not support multiple yaml document in a single playbook file right now. It means that we should be able to just skip those yaml files if they contain more than one documents.
Summary
When ansible-lint (version 6.17.2) is executed with --write option against the repository https://github.com/geerlingguy/ansible-for-devops, it fails with:
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Desired Behavior
Possible security bugs should be reported via email to
[email protected]
Actual Behavior
The --write option should be able to handle them w/o throwing errors.
The text was updated successfully, but these errors were encountered: