diff --git a/roles/mail_forwarder/handlers/main.yml b/roles/mail_forwarder/handlers/main.yml index 51e8cb8d2e30a7bde7d909f0671c6b0da741a342..50816fae35c6052a4fb379f7c7e9c49b79b990f1 100644 --- a/roles/mail_forwarder/handlers/main.yml +++ b/roles/mail_forwarder/handlers/main.yml @@ -5,9 +5,9 @@ # This task is invoked only if user is very specific about requiring to # run the handlers manually as a way to bring the system to consistency # after interrupted runs. - command: "/usr/bin/newaliases" + ansible.builtin.command: "/usr/bin/newaliases" - name: Restart Postfix - service: + ansible.builtin.service: name: postfix state: restarted