--- - name: install become: true include: install.yml # Configuration - name: configure knot become: true copy: content: "{{ knot_conf }}" dest: /etc/knot/knot.conf mode: 0640 owner: "root" group: "knot" validate: "knotc -c %s conf-check" notify: restart knot - name: enable knot become: true systemd: name: "knot" enabled: yes state: started daemon_reload: yes