main.yml 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. - name: Package cache updated
  3. shell: pkg update -f
  4. - name: Dependencies installed
  5. pkgng:
  6. name: "py37-pip py37-sqlite3 py37-supervisor postgresql12-client"
  7. state: present
  8. - name: Supervisor enabled
  9. shell: sysrc supervisord_enable="YES"
  10. - name: pgAdmin4 package installed
  11. shell: "pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.29/pip/pgadmin4-4.29-py3-none-any.whl"
  12. - name: Supervisor config file patched
  13. patch:
  14. src: supervisord.conf.patch
  15. dest: /usr/local/etc/supervisord.conf
  16. notify: Supervisor restarted
  17. - name: pgAdmin4 config file installed
  18. copy:
  19. src: config_local.py
  20. dest: /usr/local/lib/python3.7/site-packages/pgadmin4/
  21. owner: root
  22. mode: 0644
  23. notify: Supervisor restarted
  24. - name: pgAdmin4 supervisor file installed
  25. copy:
  26. src: pgadmin-supervisor.conf
  27. dest: /usr/local/etc/supervisor/conf.d/
  28. owner: root
  29. mode: 0644
  30. notify: Supervisor restarted