ansible-base/roles/mail_server/tasks/alias.yml

10 lines
198 B
YAML
Raw Normal View History

---
- name: Update mail aliases.
lineinfile:
dest: "{{ aliases_config_file }}"
line: "root: {{ alias_email }}"
regexp: "^root:"
when: alias_email != "root"
notify: update aliases