initial commit
This commit is contained in:
commit
a5b37deec1
|
@ -0,0 +1,4 @@
|
|||
- name: restart php-fpm
|
||||
ansible.builtin.service:
|
||||
name: "php{{ php_version }}-fpm"
|
||||
state: restarted
|
|
@ -0,0 +1 @@
|
|||
dependencies: []
|
|
@ -0,0 +1,17 @@
|
|||
- 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
|
|
@ -0,0 +1 @@
|
|||
php_version: 7.4
|
Loading…
Reference in New Issue