1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
17 ignore_errors: "{{ignore_online_errors | bool}}"
20 - name: add cyrus user to group ssl-cert,letsencrypt
23 groups: "ssl-cert,letsencrypt"
29 - name: copy cyrus.conf
32 dest: "/etc/cyrus.conf"
37 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/cyrus.conf"
38 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/cyrus.conf"
39 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/cyrus.conf"
40 - "default/cyrus.conf"
41 notify: restart cyrus-imapd.service
44 - name: copy imapd.conf
47 dest: "/etc/imapd.conf"
52 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/imapd.conf"
53 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/imapd.conf"
54 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/imapd.conf"
55 - "default/imapd.conf"
56 notify: restart cyrus-imapd.service
59 - name: copy default.sieve
62 dest: "/var/lib/cyrus/default.sieve"
67 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/default.sieve"
68 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/default.sieve"
69 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/default.sieve"
70 - "default/default.sieve"
71 notify: restart cyrus-imapd.service
74 - name: enable and start cyrus-imapd.service
75 include_role: name="base/systemd/enable-and-start"
77 service_name: cyrus-imapd.service