|
|
@ -39,17 +39,17 @@
|
|
|
|
become_user: postgres
|
|
|
|
become_user: postgres
|
|
|
|
|
|
|
|
|
|
|
|
- lineinfile:
|
|
|
|
- lineinfile:
|
|
|
|
path: /etc/php/7.3/fpm/php.ini
|
|
|
|
path: /etc/php/7.4/fpm/php.ini
|
|
|
|
regexp: "^upload_max_filesize = "
|
|
|
|
regexp: "^upload_max_filesize = "
|
|
|
|
line: "upload_max_filesize = 6M"
|
|
|
|
line: "upload_max_filesize = 6M"
|
|
|
|
notify: Restart php-fpm
|
|
|
|
notify: Restart php-fpm
|
|
|
|
|
|
|
|
|
|
|
|
- copy:
|
|
|
|
- copy:
|
|
|
|
src: /etc/php/7.3/fpm/pool.d/www.conf
|
|
|
|
src: /etc/php/7.4/fpm/pool.d/www.conf
|
|
|
|
dest: /etc/php/7.3/fpm/pool.d/pixelfed.conf
|
|
|
|
dest: /etc/php/7.4/fpm/pool.d/pixelfed.conf
|
|
|
|
remote_src: yes
|
|
|
|
remote_src: yes
|
|
|
|
- lineinfile:
|
|
|
|
- lineinfile:
|
|
|
|
path: /etc/php/7.3/fpm/pool.d/pixelfed.conf
|
|
|
|
path: /etc/php/7.4/fpm/pool.d/pixelfed.conf
|
|
|
|
regexp: "{{ item.regexp }}"
|
|
|
|
regexp: "{{ item.regexp }}"
|
|
|
|
line: "{{ item.line }}"
|
|
|
|
line: "{{ item.line }}"
|
|
|
|
loop:
|
|
|
|
loop:
|
|
|
@ -74,8 +74,8 @@
|
|
|
|
# https://docs.pixelfed.org/running-pixelfed/installation.html#setting-up-pixelfed-files
|
|
|
|
# https://docs.pixelfed.org/running-pixelfed/installation.html#setting-up-pixelfed-files
|
|
|
|
- git:
|
|
|
|
- git:
|
|
|
|
repo: "https://github.com/pixelfed/pixelfed.git"
|
|
|
|
repo: "https://github.com/pixelfed/pixelfed.git"
|
|
|
|
|
|
|
|
version: v0.11.2
|
|
|
|
dest: /usr/share/pixelfed
|
|
|
|
dest: /usr/share/pixelfed
|
|
|
|
version: dev
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- file:
|
|
|
|
- file:
|
|
|
|
path: /usr/share/pixelfed
|
|
|
|
path: /usr/share/pixelfed
|
|
|
@ -87,7 +87,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: Restart php-fpm
|
|
|
|
- name: Restart php-fpm
|
|
|
|
service:
|
|
|
|
service:
|
|
|
|
name: php7.3-fpm
|
|
|
|
name: php7.4-fpm
|
|
|
|
state: restarted
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: pixelfed
|
|
|
|
- hosts: pixelfed
|
|
|
|