main.yml 557 B

1234567891011121314151617181920212223
  1. ---
  2. - name: Package cache updated
  3. shell: pkg update -f
  4. - name: PostgreSQL packages installed
  5. pkgng:
  6. name: "postgresql12-server postgresql12-client"
  7. state: present
  8. - name: PostgreSQL enabled
  9. shell: sysrc postgresql_enable="YES"
  10. - name: PostgreSQL access file patched
  11. patch:
  12. src: pg_hba.conf.patch
  13. dest: /var/db/postgres/data12/pg_hba.conf
  14. notify: PostgreSQL restarted
  15. - name: PostgreSQL config file patched
  16. patch:
  17. src: postgresql.conf.patch
  18. dest: /var/db/postgres/data12/postgresql.conf
  19. notify: PostgreSQL restarted