---
- name: Configure root email forward
lineinfile:
dest: /etc/aliases
regexp: "^root:.*"
line: "root: {{ system_admin_email }}"
notify: newaliases
when: system_admin_email is defined
...