1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Update main.yml

This commit is contained in:
A Holt 2019-02-02 15:50:04 -05:00 committed by GitHub
parent 63e48ead07
commit 5e123f4ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,9 +170,15 @@
regexp: "^port = 8080$"
line: "port = {{ sugarizer_port }}"
# 2019-02-01: HACK REQUIRED FOR NOW on Ubuntu 18.04 so Sugarizer finds MongoDB
# after 1st reboot! This does NOT affect Raspbian. @jvonau wonders if Ubuntu's
# "nameserver 127.0.0.53" in /etc/resolv.conf is to blame? BACKGROUND: PR #1430
# 2019-02-01: HACK REQUIRED FOR NOW ON UBUNTU 18.04 so Sugarizer finds MongoDB
# after 1st reboot. Otherwise "Waiting for DB..." appears every second as
# shown by "systemctl status sugarizer" and "journalctl -eu sugarizer".
# This does NOT affect Raspbian. @jvonau wonders if Ubuntu's
# "nameserver 127.0.0.53" in /etc/resolv.conf is to blame? @m-anish wondered
# if "bind_ip: 127.0.0.1" in /etc/mongod.conf was to blame as suggested by
# https://stackoverflow.com/questions/8904991/mongodb-cant-connect-to-localhost-but-can-connect-to-localhosts-ip-address
# But changing to "bind_ip: localhost" does not work with Sugarizer, and
# "bind_ip: 127.0.0.1,localhost" is not allowed. BACKGROUND: PR #1430
- name: Set MongoDB "server" from localhost to 127.0.0.1 in /opt/iiab/sugarizer-server/env/sugarizer.ini
lineinfile:
path: {{ iiab_base }}/sugarizer-server/env/sugarizer.ini