[root@ggnmaster2 jenkins]# ls
hosts  site.yml
[root@ggnmaster2 jenkins]# more site.yml
---
- hosts: jenkins_hosts
roles:
- geerlingguy.apache
#- { role: "geerlingguy.apache" }
[root@ggnmaster2 jenkins]# vi site.yml
[root@ggnmaster2 jenkins]# ansible-playbook site.yml
ERROR! Syntax Error while loading YAML.

The error appears to have been in '/root/MyPlaybooks/jenkins/site.yml': 
line 3, column 1, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- hosts: jenkins_hosts
roles:
^ here
[root@ggnmaster2 jenkins]# ls /etc/ansible/roles/geerlingguy.jenkins/
defaults  handlers  LICENSE  meta  README.md  tasks  templates  tests  vars
[root@ggnmaster2 jenkins]# more site.yml
---
- hosts: jenkins_hosts
roles:
- { role: "geerlingguy.apache" }
[root@ggnmaster2 jenkins]# ls /etc/ansible/roles/geerlingguy.apache/
defaults  handlers  LICENSE  meta  README.md  tasks  templates  tests  vars


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2d92b4a8-7e0d-471c-99ec-b39d9cf49797%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to