18 lines
479 B
YAML
18 lines
479 B
YAML
- name: Install packages.
|
|
ansible.builtin.package:
|
|
name:
|
|
- "php{{ php_version }}"
|
|
- "php{{ php_version }}-fpm"
|
|
|
|
- name: Configure php
|
|
ansible.builtin.lineinfile:
|
|
path: "/etc/php/{{ php_version }}/fpm/php.ini"
|
|
regexp: "{{ item.regexp }}"
|
|
line: "{{ item.line }}"
|
|
with_items:
|
|
- regexp: ";?date\\.timezone"
|
|
line: date.timezone = Europe/Berlin
|
|
- regexp: ";?cgi\\.fix_pathinfo"
|
|
line: cgi.fix_pathinfo = 1
|
|
notify: restart php-fpm
|