Skip to content

Instantly share code, notes, and snippets.

@tvon
Created April 4, 2017 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvon/e49329ebe65eeef254e21d44c0951fd2 to your computer and use it in GitHub Desktop.
Save tvon/e49329ebe65eeef254e21d44c0951fd2 to your computer and use it in GitHub Desktop.
- 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
Copy link
Author

tvon 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