Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the logic that writes the dynamic inventory to file #71

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

dseeley-sky
Copy link
Contributor

  • Jinja2 in Ansible is set to always delete whitespace before and after the expression, so the lines of inventory are concatenated. Fix the logic, by adding a "{{''}}" to the end of the jinja2 expression.
  • Simplify the EXAMPLE/cluster.yml to remove the anchors and aliases (& and *), which add no value here as they have to be duplicated instead of the tags they're referencing.

+ Jinja2 in Ansible is set to always delete whitespace before and after the expression, so the lines of inventory are concatenated. Fix the logic, by adding a "{{''}}" to the end of the jinja2 expression.
+ Simplify the EXAMPLE/cluster.yml to remove the anchors and aliases (& and *), which add no value here as they have to be duplicated instead of the tags they're referencing.
@antoineserrano antoineserrano self-requested a review October 2, 2020 10:27
Copy link
Contributor

@antoineserrano antoineserrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - tested successfully.

@antoineserrano antoineserrano merged commit 653462f into master Oct 2, 2020
dseeley pushed a commit to dseeley/clusterverse that referenced this pull request Oct 5, 2020
@dseeley-sky dseeley-sky deleted the dse09_fix_inventory_writer branch November 4, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants