aliases.j2 735 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% if ansible_controlled is defined and ansible_controlled != "" %}
  2. #
  3. # {{ ansible_controlled }}
  4. #
  5. {% endif %}
  6. #
  7. # Common aliases
  8. #
  9. mailer-daemon: postmaster
  10. postmaster: root
  11. nobody: root
  12. webmaster: root
  13. www-data: root
  14. abuse: root
  15. noc: root
  16. security: root
  17. logcheck: root
  18. clamav: root
  19. monit: root
  20. {% if mail_aliases is defined %}
  21. #
  22. # Custom aliases
  23. #
  24. {% for user in mail_aliases %}
  25. {% if mail_aliases[user][:1] == '|' %}
  26. {{ user }}: "{{ mail_aliases[user] }}"
  27. {% else %}
  28. {{ user }}: {{ mail_aliases[user] }}
  29. {% endif %}
  30. {% endfor %}
  31. {% endif %}
  32. #
  33. # root alias
  34. #
  35. {% if admins_emails is defined %}
  36. root: {{ admins_emails | join(', ') }}
  37. {% endif %}