main.yml 730 B

1234567891011121314151617181920
  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: Pixelfed source fetched
  7. shell: git clone -b dev https://github.com/pixelfed/pixelfed.git /usr/local/src/pixelfed
  8. - name: Pixelfed composer run
  9. shell: composer install
  10. chdir: /usr/local/src/pixelfed
  11. - name: Pixelfed conf file installed
  12. template:
  13. src: pixelfed.php
  14. dest: /usr/local/src/pixelfed/config/pixelfed.php
  15. owner: www
  16. mode: 0666
  17. notify: Nginx restarted