Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions molecule/keepalived/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ provisioner:
- "172.17.0.3"
- "172.17.0.4"
keepalived_virtual_ip_address: "172.17.0.20"
keepalived_notification_email: "[email protected]"
# keepalived_notification_emails:
# - "root@localhost"
# - "[email protected]"
keepalived_notification_emails:
- "root@localhost"
- "[email protected]"
verifier:
name: "ansible"
scenario:
Expand Down
14 changes: 0 additions & 14 deletions roles/keepalived/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@
fail_msg: "Some mandatory variables are not set."
success_msg: "All mandatory variables are set."

- name: "Variable keepalived_notification_email is deprecated"
when: "keepalived_notification_email | default('') | length > 0"
block:

- name: "Set keepalived_notification_emails variable"
ansible.builtin.set_fact:
keepalived_notification_emails: ["{{ keepalived_notification_email }}"]

- name: "Show deprecation warning"
ansible.builtin.debug:
msg:
- "The variable keepalived_notification_email is deprecated and will be removed in the next major release."
- "Please use list variable 'keepalived_notification_emails' instead."

- name: "Install dependencies for Keepalived."
become: true
ansible.builtin.package:
Expand Down