Open jaykumar2001 opened 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'}}
You have to indent all the lines after the - yumrepo: line.
- yumrepo: