Skip to content

Commit 75ce4fa

Browse files
authored
Merge pull request #3 from Daria-Kr/Replace php7.4 version for php8.2
Replace php7.4 version for php8.2
2 parents 1349b75 + 82c0149 commit 75ce4fa

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

tasks/host_bootstrap.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,30 @@
1313
become: true
1414
when: snipe_clean_env
1515

16-
- name: Host Bootstrap | Install PHP 7.4 packages
16+
- name: Host Bootstrap | Install PHP 8.2 packages
1717
apt:
1818
name: "{{ packages }}"
1919
state: present
2020
vars:
2121
packages:
22-
- php7.4-common
22+
- php8.2-common
2323
- php-pear
24-
- php7.4-bcmath
25-
- php7.4-cli
26-
- php7.4-common
27-
- php7.4-curl
28-
- php7.4-dev
29-
- php7.4-gd
30-
- php7.4-intl
31-
- php7.4-json
32-
- php7.4-ldap
33-
- php7.4-mbstring
34-
- php7.4-mysql
35-
- php7.4-opcache
36-
- php7.4-readline
37-
- php7.4-xml
38-
- php7.4-zip
24+
- php8.2-bcmath
25+
- php8.2-cli
26+
- php8.2-common
27+
- php8.2-curl
28+
- php8.2-gd
29+
- php8.2-ldap
30+
- php8.2-mbstring
31+
- php8.2-mysql
32+
- php8.2-readline
33+
- php8.2-xml
34+
- php8.2-zip
3935
become: true
4036

4137
- name: Host Bootstrap | Install Nginx and PHP-FPM
4238
apt:
43-
name: [nginx, php7.4-fpm]
39+
name: [nginx, php8.2-fpm]
4440
state: present
4541
when: snipe_http_server == "nginx"
4642
become: true

templates/snipeit.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ server {
1212
try_files $uri $uri/ /index.php$is_args$args;
1313
}
1414
location ~* \.php$ {
15-
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
15+
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
1616
include fastcgi_params;
1717
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
1818
fastcgi_param SCRIPT_NAME $fastcgi_script_name;

0 commit comments

Comments
 (0)