NewsBlur-viq/ansible/roles/postgres-exporter/tasks/get_postgres_credentials.py
2021-05-26 12:16:33 -04:00

8 lines
No EOL
254 B
Python
Executable file

#!/srv/newsblur/venv/newsblur3/bin/python
import sys
sys.path.append('/srv/newsblur')
from newsblur_web import settings
username = settings.DATABASES['default']['USER']
password = settings.DATABASES['default']['PASSWORD']
print(f"{username}:{password}")