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

Add support for vrrp_track_file and track_files #140

Closed
wants to merge 2 commits into from

Conversation

jjungnickel
Copy link

No description provided.

Copy link
Owner

@evrardjp evrardjp left a 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 %}
Copy link
Owner

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.

@evrardjp evrardjp added the enhancement Proposed addition to ansible-keepalived label Jul 17, 2020
@evrardjp evrardjp added the no-answer No answer from original author for two weeks or more. Used to expire stale issues or PR. label Aug 2, 2021
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 9, 2022
* Add support for ``vrrp_track_file`` and ``track_files`` evrardjp#140

evrardjp#140
Credits to @jjungnickel
Kariton added a commit to Kariton/ansible-keepalived that referenced this pull request Jun 16, 2022
evrardjp pushed a commit to Kariton/ansible-keepalived that referenced this pull request Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Proposed addition to ansible-keepalived no-answer No answer from original author for two weeks or more. Used to expire stale issues or PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants