Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting multiple errors with ansible 2.1.1.0 #108

Closed
artworkad opened this issue Sep 2, 2016 · 2 comments
Closed

Getting multiple errors with ansible 2.1.1.0 #108

artworkad opened this issue Sep 2, 2016 · 2 comments
Labels

Comments

@artworkad
Copy link

ERROR! Syntax Error while loading YAML.

The error appears to have been in '/ansible/roles/angstwad.docker_ubuntu/LICENSE': line 92, column 36, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  modifications, and in Source or Object form, provided that You
  meet the following conditions:
                               ^ here

/ansible/roles/angstwad.docker_ubuntu/LICENSE:1: Expected key=value host variable assignment, got: License

when I remove this file:

ERROR! /ansible/roles/angstwad.docker_ubuntu/README.md:4: Invalid section entry: 'Build Status'. Please make sure that there are no spacesin the section entry, and that there are no other invalid characters

when I remove it:

ERROR! Syntax Error while loading YAML.

The error appears to have been in '/ansible/roles/angstwad.docker_ubuntu/Vagrantfile': line 37, column 42, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  vms.vm.network :private_network, ip: box[:ip]
                                     ^ here

/ansible/roles/angstwad.docker_ubuntu/Vagrantfile:4: Expected key=value host variable assignment, got: File.basename(File.expand_path(File.dirname(FILE)))

and when I finally remove this I get:

ERROR! 'AnsibleSequence' object has no attribute 'keys'
/ansible/roles/angstwad.docker_ubuntu/docker.yml:2: Expected key=value host variable assignment, got: hosts:

any idea whats wrong?

@angstwad
Copy link
Owner

angstwad commented Sep 4, 2016

I have no idea why this is happening, but Ansible is trying to load non-yaml files. Make sure you're running the latest version of ansible, and check your roles_path (docs here).

Are you using this as a role? Don't use include here.

@angstwad
Copy link
Owner

angstwad commented Oct 3, 2016

This isn't an issue with this role; closing.

@angstwad angstwad closed this as completed Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants