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 opendmarc prereq
15 ignore_errors: "{{ignore_online_errors | bool}}"
18 - name: install opendmarc
25 ignore_errors: "{{ignore_online_errors | bool}}"
28 - name: copy opendmarc defaults
31 dest: "/etc/default/opendmarc"
36 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/opendmarc.defaults"
37 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/opendmarc.defaults"
38 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/opendmarc.defaults"
39 - "default/opendmarc.defaults"
40 notify: restart opendmarc.service
43 - name: copy opendmarc config
46 dest: "/etc/opendmarc.conf"
51 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/opendmarc.conf"
52 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/opendmarc.conf"
53 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/opendmarc.conf"
54 - "default/opendmarc.conf"
55 notify: restart opendmarc.service
58 - name: copy opendmarc.service to /etc/systemd/system/
61 dest: "/etc/systemd/system/opendmarc.service"
66 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/opendmarc.service"
67 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/opendmarc.service"
68 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/opendmarc.service"
69 - "default/opendmarc.service"
72 - name: enable and start opendmarc.service
73 include_role: name="base/systemd/enable-and-start"
75 service_name: opendmarc.service