blob: b96d4dd4e44a7038d3f5fff010f8379890d5128a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
- name: install email software
ansible.builtin.package:
name:
- mutt
- urlview
- exim4
- name: set up "group" users
ansible.builtin.user:
name: "{{ item.key }}"
loop: "{{ mail_groups | dict2items }}"
loop_control:
label: "{{ item.key }}"
- name: set up "group" alias
ansible.builtin.blockinfile:
path: /etc/aliases
block: |
root: {{ root_alias }}
{% for group, members in mail_groups.items() %}
{{ group }}: {{ members | join(', ') }}, {{ group }}
{% endfor %}
|