Skip to content

Instantly share code, notes, and snippets.

@tvon tvon/main.yaml
Created Apr 4, 2017

Embed
What would you like to do?
- name: "unifi | configure service db.mongo.local"
lineinfile:
dest: "/usr/lib/unifi/data/system.properties"
regexp: '^db\.mongo\.local='
line: "db.mongo.local={{ unifi_db_mongo_local }}"
insertbefore: BOF
@tvon

This comment has been minimized.

Copy link
Owner Author

commented Apr 4, 2017

% ansible-playbook -i hosts playbook.yaml
ERROR! Syntax Error while loading YAML.


The error appears to have been in '/home/tvon/src/ansible/ansible-unifi/tasks/main.yaml': line 6, column 17, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    dest: "/usr/lib/unifi/data/system.properties"
    regexp: "^db\.mongo\.local="
                ^ here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.