diff --git a/ansible/group_vars/dev.yml b/ansible/group_vars/dev.yml index e36778a..d3e713b 100644 --- a/ansible/group_vars/dev.yml +++ b/ansible/group_vars/dev.yml @@ -5,7 +5,8 @@ apache_vhosts: - servername: webcron.test documentroot: /mnt/dev-root/public extra_parameters: | - AssignUserId vagrant vagrant + AssignUserId vagrant vagrant + ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/mnt/dev-root/public" apache_packages: - apache2 - apache2-utils @@ -16,14 +17,17 @@ apache_mods_enabled: - proxy.load - proxy_fcgi.load apache_remove_default_vhost: true -php_version: "8.0" -php_packages_extra: [ "libapache2-mod-php{{ php_version }}" ] +php_version: "8.1" +php_packages_extra: [ "libapache2-mod-php{{ php_version }}", "php{{ php_version }}-intl", "php{{ php_version }}-mysql", "php{{ php_version }}-zip"] +php_enable_php_fpm: true +php_fpm_pool_user: "vagrant" +php_fpm_pool_group: "vagrant" php_enable_apc: true php_date_timezone: "Europe/Brussels" php_upload_max_filesize: 4G php_post_max_size: 4G php_memory_limit: 2G -php_xdebug_version: '3.0.3' +php_xdebug_version: '3.1.4' php_opcache_zend_extension: "opcache.so" php_opcache_enable: "1" php_opcache_enable_cli: "1" @@ -35,3 +39,19 @@ php_opcache_validate_timestamps: "1" php_opcache_revalidate_path: "0" php_opcache_revalidate_freq: "1" php_opcache_max_file_size: "0" +mysql_packages: + - mariadb-client + - mariadb-server + - python3-mysqldb +mysql_users: + - name: webcron_rw + password: letmein + host: '127.0.0.1' + priv: "webcron.*:ALL PRIVILEGES" +mysql_databases: + - name: webcron + encoding: utf8 + collation: utf8_general_ci +nodejs_npm_global_packages: + - sass + - yarn diff --git a/ansible/site.yml b/ansible/site.yml index 408b274..0245e55 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -2,7 +2,11 @@ --- - hosts: all roles: - - geerlingguy.apache - geerlingguy.php-versions - geerlingguy.php + - geerlingguy.apache-php-fpm + - geerlingguy.apache - geerlingguy.php-xdebug + - geerlingguy.mysql + - geerlingguy.composer + - geerlingguy.nodejs