--- - name: restart vmagent docker_compose: project_src: "{{ grafana_base_dir }}" state: restarted services: vmagent become: yes