main.yml 547 B

123456789101112131415161718192021
  1. ---
  2. - name: Dependencies installed
  3. pkgng:
  4. name: py38-pip,py38-sqlite3,postgresql13-client,rust
  5. state: latest
  6. - name: Pgadmin package installed
  7. shell: "pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v6.1/pip/pgadmin4-6.1-py3-none-any.whl"
  8. - name: Pgadmin rc file installed
  9. ansible.builtin.copy:
  10. src: pgadmin.rc
  11. dest: /usr/local/etc/rc.d/pgadmin
  12. mode: a+x
  13. notify: Pgadmin restarted
  14. - name: Pgadmin enabled
  15. shell: sysrc pgadmin_enable="YES"
  16. - name: Pgadmin started
  17. service: name=pgadmin state=started