--- - name: test dkim dns records command: opendkim-testkey -v -d {{item}} -s {{dkim_selector}} -k /etc/opendkim/keys/{{item}}/{{dkim_selector}}.private changed_when: false with_items: "{{dkim_domains}}"