picotrading / ansible-grafana

Role to install and configure Grafana
MIT License
60 stars 33 forks source link

expected a role name in dictionary #2

Open jaykumar2001 opened 9 years ago

jaykumar2001 commented 9 years ago
jays-MacBook-Pro:playbooks jaykumar$ cat yumrepo.yml

- hosts: all
  roles:
    - yumrepo:
      # Configure the grafana YUM repo
      grafana:
        name: Grafana repo
        baseurl: https://packagecloud.io/grafana/stable/el/6/x86_64
        gpgcheck: 0
Jays-MacBook-Pro:playbooks jaykumar$ ansible-playbook -l grafana yumrepo.yml -u jay.kumar --ask-sudo-pass --sudo
SUDO password:
ERROR: expected a role name in dictionary: {'yumrepo': None, 'grafana': {'gpgcheck': 0, 'name': 'Grafana repo', 'baseurl': 'https://packagecloud.io/grafana/stable/el/6/x86_64'}}
jtyr commented 9 years ago

You have to indent all the lines after the - yumrepo: line.