- name: install opendmarc package: name: opendmarc state: present - name: opendmarc config file copy: src: ./files/opendmarc.conf dest: /etc/opendmarc.conf notify: - restart opendmarc - name: dmarc directory file: path: /etc/dmarc state: directory - name: secondary configuration files copy: src: "./files/dmarc/{{ item }}" dest: "/etc/dmarc/{{ item }}" loop: - IgnoreHosts notify: - restart opendmarc