Open jaykumar2001 opened 9 years ago
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'}}
See issue #2 for explanation.
Jays-MacBook-Pro:playbooks jaykumar$ cat yumrepo.yml
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'}}