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>
8 - name: install opendkim
15 ignore_errors: "{{ignore_online_errors | bool}}"
18 - name: remove opendkim.conf
20 path: "/etc/opendkim.conf"
24 - name: create opendkim config dir
33 - name: copy opendkim configs and keys
36 dest: "/etc/opendkim/{{item.path}}"
41 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/opendkim/"
42 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/opendkim/"
43 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/opendkim/"
45 when: item.state == "file"
46 notify: restart opendkim.service
49 - name: copy opendkim.service to /etc/systemd/system/
52 dest: "/etc/systemd/system/opendkim.service"
57 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/opendkim.service"
58 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/opendkim.service"
59 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/opendkim.service"
60 - "default/opendkim.service"
61 notify: restart opendkim.service
64 - name: enable and start opendkim.service
65 include_role: name="base/systemd/enable-and-start"
67 service_name: opendkim.service