NewsBlur-viq/ansible/roles/postgres-exporter/tasks/get_postgres_credentials.py

8 lines
254 B
Python
Raw Normal View History

2021-05-26 12:16:33 -04:00
#!/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}")