暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

postgres.yml 399B

123456789101112131415161718
  1. ---
  2. # Defines tasks applicable for postgreSQL
  3. - name: Install Postgres
  4. apt:
  5. name: "{{ packages }}"
  6. state: present
  7. vars:
  8. packages:
  9. - postgresql-9.6
  10. - python-psycopg2
  11. tags:
  12. - dependencies
  13. - name: Set password for PostgreSQL admin user
  14. become: true
  15. become_user: postgres
  16. postgresql_user: name={{ db_admin_username }} password={{ db_admin_password }} encrypted=yes