diff --git a/molecule/keepalived/molecule.yml b/molecule/keepalived/molecule.yml index 7e1681a6..e98ef936 100644 --- a/molecule/keepalived/molecule.yml +++ b/molecule/keepalived/molecule.yml @@ -35,10 +35,9 @@ provisioner: - "172.17.0.3" - "172.17.0.4" keepalived_virtual_ip_address: "172.17.0.20" - keepalived_notification_email: "sysadmin@firewall.loc" - # keepalived_notification_emails: - # - "root@localhost" - # - "sysadmin@firewall.loc" + keepalived_notification_emails: + - "root@localhost" + - "sysadmin@firewall.loc" verifier: name: "ansible" scenario: diff --git a/roles/keepalived/tasks/main.yml b/roles/keepalived/tasks/main.yml index a5731073..988a07e8 100644 --- a/roles/keepalived/tasks/main.yml +++ b/roles/keepalived/tasks/main.yml @@ -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: