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

9 lines
262 B
YAML
Raw Normal View History

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