Skip to content

prepare.sh - Syntax error while loading YAML  #130

Description

@shmcfarl

I am building a clean setup and running prepare.sh fails with an error.

./prepare.sh root

Warning: aci.yml was ignored
SSH password:
SUDO password[defaults to SSH password]:
ERROR! Syntax Error while loading YAML.

The error appears to have been in '/root/demo/k8s/prepare.yml': line 56, column 33, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

shell: ifconfig "{{ contiv_control_if }}" "{{ contiv_control_ip }}"/24
when: "{{ management_ip }}" != "{{ contiv_control_ip }}"
                            ^ here

We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

with_items:
  - {{ foo }}

Should be written as:

with_items:
  - "{{ foo }}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions