facebookarchive / CommunityCellularManager

Tool for deploying, managing and controlling your Community Cellular Networks
Other
87 stars 36 forks source link

Update postgres.dev.yml, replace sudo/sudo_user with become/become_user #90

Closed eprueves closed 6 years ago

eprueves commented 6 years ago

I encountered this error when setting the cloud VMs up on a new computer.

TASK [Add Endaga DB] ***********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OperationalError: FATAL:  Peer authentication failed for user "postgres"
fatal: [db]: FAILED! => {"changed": false, "msg": "unable to connect to database: FATAL:  Peer authentication failed for user \"postgres\"\n"}
    to retry, use: --limit @/home/sago/Documents/PCARI/DEV3/CCM_20171212/CommunityCellularManager/cloud/ansible/postgres.dev.retry

PLAY RECAP *********************************************************************
db                         : ok=2    changed=1    unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Replacing sudo/sudo_user with become/become_user fixed this and the DB vm was completed without any hiccups. This is also partially mentioned in #20