initial commit

This commit is contained in:
Patrick Neff 2022-01-24 22:16:09 +01:00
commit a5b37deec1
4 changed files with 23 additions and 0 deletions

4
handlers/main.yml Normal file
View File

@ -0,0 +1,4 @@
- name: restart php-fpm
ansible.builtin.service:
name: "php{{ php_version }}-fpm"
state: restarted

1
meta/main.yml Normal file
View File

@ -0,0 +1 @@
dependencies: []

17
tasks/main.yml Normal file
View File

@ -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

1
vars/main.yml Normal file
View File

@ -0,0 +1 @@
php_version: 7.4