---

- hosts: localhost
  become: true


  tasks:

  - name: Load the Filebeat dashboard
    command: ./import_dashboards.sh
    args:
      chdir: /usr/share/filebeat/kibana/

  - name: Load the Metricbeat dashboard
    command: ./import_dashboards.sh
    args:
      chdir: /usr/share/metricbeat/kibana/

  - name: Load the Packetbeat dashboard
    command: ./import_dashboards.sh
    args:
      chdir: /usr/share/packetbeat/kibana/

---

- hosts: localhost
  become: true


  tasks:

  - name: Load the Filebeat dashboard
    command: ./import_dashboards
    args:
      chdir: /usr/share/filebeat/scripts/

  - name: Load the Metricbeat dashboard
    command: ./import_dashboards
    args:
      chdir: /usr/share/metricbeat/scripts/

  - name: Load the Packetbeat dashboard
    command: ./import_dashboards
    args:
      chdir: /usr/share/packetbeat/scripts/

FIX path to the new Beats dashboard scripts
FIX path to the new Beats dashboard scripts
