main.yml 829 B

1234567891011121314151617181920212223242526
  1. ---
  2. - name: Pixelfed deps installed
  3. community.general.pkgng:
  4. name: "git php74-composer php74-intl php74-dom php74-tokenizer php74-xmlwriter php74-xml php74-zip php74-fileinfo php74-pcntl php74-posix php74-simplexml php74-pdo redis php74-iconv php74-curl php74-bcmath php74-pgsql php74-pdo_pgsql php74-session"
  5. state: latest
  6. - name: Source folder exists
  7. file:
  8. path: /usr/local/src
  9. mode: 0755
  10. state: directory
  11. - name: Pixelfed source fetched
  12. shell: git clone -b dev https://github.com/pixelfed/pixelfed.git /usr/local/src/pixelfed
  13. - name: Pixelfed composer run
  14. shell: composer install
  15. chdir: /usr/local/src/pixelfed
  16. - name: Pixelfed conf file installed
  17. template:
  18. src: pixelfed.php
  19. dest: /usr/local/src/pixelfed/config/pixelfed.php
  20. owner: www
  21. mode: 0666
  22. notify: Nginx restarted