ansible-base/roles/backup_client/tasks/aliases.yml

9 lines
319 B
YAML
Raw Permalink Normal View History

---
- name: Update mail aliases.
lineinfile:
dest: "{{ aliases_config_file }}"
line: "{{ backup_client_user }}: {{ backup_client_mail_target }}"
regexp: "^{{ backup_client_user }}:"
when: backup_client_mail_target != backup_client_user and backup_client_folders_to_backup != ""
notify: update aliases