main.yml 662 B

123456789101112131415161718192021222324
  1. ---
  2. - name: Dependencies installed
  3. pkgng:
  4. name: py37-pip,py37-sqlite3,postgresql12-client,rust
  5. state: latest
  6. - name: pgAdmin4 package installed
  7. shell: "pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v5.0/pip/pgadmin4-5.0-py3-none-any.whl"
  8. - name: pgAdmin4 config file installed
  9. copy:
  10. src: config_local.py
  11. dest: /usr/local/lib/python3.7/site-packages/pgadmin4/
  12. owner: root
  13. mode: 0644
  14. notify: Supervisor restarted
  15. - name: pgAdmin4 supervisor file installed
  16. copy:
  17. src: pgadmin-supervisor.conf
  18. dest: /usr/local/etc/supervisor/conf.d/pgadmin.conf
  19. owner: root
  20. mode: 0644
  21. notify: Supervisor restarted