Example ansible playbook and role to set up postgres database Based on https://blog.apcelent.com/using-ansible-to-set-up-postgresql.html
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

10 行
136 B

  1. ---
  2. - name: Create a PostgreSQL DB server
  3. hosts: all
  4. remote_user: postgres
  5. vars_files:
  6. - vars/main.yml
  7. roles:
  8. - createdb