- hosts: [{{host}}] sudo: yes tasks: - service: name: riak state: stopped - template: src: {{templates_dir}}/riak.conf dest: /etc/riak/riak.conf - service: name: riak state: reloaded