Add roles apache-php and reverse_proxy

This commit is contained in:
polz 2025-07-25 16:55:11 +02:00
parent d1cf462f64
commit 4ed3bc5d7f
5 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,20 @@
- name: Install standard expected packages
package:
name: acl,php,php-apache2,php-session,php-iconv
- name: Get installed packages
package_facts:
- name: Set PHP version
set_fact:
php_version: "{{ ansible_facts.packages | select('match', '^php[0-9]+$') | first | replace('php', '') }}"
- name: Set PHP settings
lineinfile:
path: '/etc/php{{ php_version }}/php.ini'
regexp: '^{{ item.key }}\s*='
line: '{{ item.key }} = {{ item.value }}'
loop:
- key: upload_max_filesize
value: 200M