aliases.j2 745 B

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