- hosts:
    - conflatorio
  tasks:
    - become: yes
      file:
        path: /etc/docker-service/prometheus
        state: directory
        owner: root
        group: root

    - become: yes
      notify: reload prometheus
      copy:
        dest: /etc/docker-service/prometheus/prometheus.yml
        src: "{{ inventory_hostname }}/prometheus.yml"

  handlers:
    - name: reload prometheus
      shell: docker kill --signal HUP prometheus