Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

cannot check and run playbook.yml , error reporting #41

Open
mukulmatta opened this issue Oct 13, 2019 · 1 comment
Open

cannot check and run playbook.yml , error reporting #41

mukulmatta opened this issue Oct 13, 2019 · 1 comment

Comments

@mukulmatta
Copy link

mukulmatta commented Oct 13, 2019

[root@testvm1 cis-rhel-ansible]# ansible-playbook -i hosts -C playbook.yml
ERROR! A playbook must be a list of plays, got a <class 'ansible.parsing.yaml.objects.AnsibleMapping'> instead

The error appears to be in '/etc/ansible/cis-rhel-ansible/playbook.yml': line 18, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

hosts: all
^ here


[root@testvm1 cis-rhel-ansible]# ansible-playbook playbook.yml -i hosts --list-tags
ERROR! 'accelerate' is not a valid attribute for a Play

The error appears to be in '/etc/ansible/cis-rhel-ansible/playbook.yml': line 18, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • hosts: all
    ^ here
@jfucanada
Copy link

Got same errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants