- name: generate relayd configuration template: src: relayd.conf.j2 dest: "{{ relayd_configuration_file }}" - name: verify relayd configuration command: "relayd -nf {{ relayd_configuration_file }}" - name: enable and restart relayd service: name: relayd state: restarted enabled: true