main.yml 500 B

123456789101112131415161718192021
  1. ---
  2. - name: Dependencies installed
  3. pkgng:
  4. name: py39-pip,py39-sqlite3,postgresql14-client,rust,jpeg-turbo,tiff,webp,freetype2
  5. state: latest
  6. - name: Pgadmin package installed
  7. shell: "pip install pgadmin4"
  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