36 lines
830 B
YAML
36 lines
830 B
YAML
- name: Install php-fpm
|
|
become: true
|
|
ansible.builtin.apt:
|
|
name:
|
|
- php-fpm
|
|
- php-xml
|
|
- php-mbstring
|
|
- php-zip
|
|
- php-intl
|
|
- php-gd
|
|
- php-sqlite3
|
|
diff: false
|
|
|
|
- name: Ensure `php-fpm` is enabled
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
service: "php{{ dokuwiki__php_version }}-fpm.service"
|
|
enabled: true
|
|
|
|
- name: Create custom php-fpm pool
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: "{{ role_path }}/templates/php-fpm-dokuwiki.conf"
|
|
dest: "/etc/php/{{ dokuwiki__php_version }}/fpm/pool.d/dokuwiki.conf"
|
|
mode: "0755"
|
|
notify: Restart php-fpm
|
|
|
|
- name: Create `/var/www` directory
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: /var/www
|
|
state: directory
|
|
owner: "{{ dokuwiki__nginx_user }}"
|
|
group: "{{ dokuwiki__nginx_user }}"
|
|
mode: "0755"
|