asquarezone/DevOpsClassRoom

i got an error

Closed this issue · 2 comments

ansible@ip-172-31-91-175:~/playbooks$ ansible-playbook lamp_beginer.yml
ERROR! Syntax Error while loading YAML.
mapping values are not allowed in this context

The error appears to be in '/home/ansible/playbooks/lamp_beginer.yml': line 6, column 10, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: update ubuntu packages and install apache2
    apt:
    ^ here

Hi
please show the .yml file once.