-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add support for vrrp_track_file
and track_files
#140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you squash those changes, and add the |bool
for the boolean checks?
file "{{ details.file }}" | ||
weight {{ details.weight | default(1) }} # multiply with weight in file (default: 1, i.e. literal value from file) | ||
{% if details.init_file | default(false) %} | ||
init_file{% if details.init_file_value is defined %} {{ details.init_file_value }}{% endif %}{% if details.init_file_overwrite | default(false) %} overwrite{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if you add | bool
to all those default(false)
conditionals. If it's defined and truth-y, it won't necessary work. It's a more Ansible-y way to add the | bool
to verify the input is as expected. This applies to L87 and L88.
* Add support for ``vrrp_track_file`` and ``track_files`` evrardjp#140 evrardjp#140 Credits to @jjungnickel
No description provided.