main.yml 668 B

1234567891011121314151617181920212223
  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. template:
  10. src: config_local.py.j2
  11. dest: /usr/local/lib/python3.7/site-packages/pgadmin4/config_local.py
  12. mode: 0644
  13. notify: Supervisor restarted
  14. - name: pgAdmin4 supervisor file installed
  15. copy:
  16. src: pgadmin-supervisor.conf
  17. dest: /usr/local/etc/supervisor/conf.d/pgadmin.conf
  18. owner: root
  19. mode: 0644
  20. notify: Supervisor restarted