Ask Your Question
0

What is the issue with the indentation of subkeys in Ansible Jinja2?

asked 2023-05-31 09:04:29 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-31 09:22:01 +0000

qstack gravatar image

The issue with the indentation of subkeys in Ansible Jinja2 is that it can affect the way that the YAML file is interpreted. If the subkeys are not properly indented, they may not be recognized as part of the parent key and can cause errors in the playbook. This can be particularly problematic when dealing with complex YAML files with many levels of nesting. It is important to pay close attention to indentation and ensure that subkeys are properly aligned with their parent keys.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-31 09:04:29 +0000

Seen: 13 times

Last updated: May 31 '23