Skip to content

Commit eae111e

Browse files
author
Mathieu LALLEMAND
committed
feat: bump to php 8.3
1 parent 974ac6f commit eae111e

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

local.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- include_tasks: playbooks/ssh-agent.yml
99
- include_tasks: playbooks/git-flow.yml
1010
- include_tasks: playbooks/docker.yml
11-
- include_tasks: playbooks/php8.2.yml
11+
- include_tasks: playbooks/php8.3.yml
1212
- include_tasks: playbooks/nvm.yml
1313
- include_tasks: playbooks/laravel-aliases.yml
14-
- include_tasks: playbooks/p4merge.yml
14+
- include_tasks: playbooks/p4merge.yml

playbooks/php8.3.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
- name: PHP - Add Ondrej PPA
2+
apt_repository:
3+
repo: ppa:ondrej/php
4+
state: present
5+
6+
- name: PHP - Install PHP 8.3 CLI
7+
apt:
8+
state: latest
9+
pkg:
10+
- openssl
11+
- php8.3-cli
12+
- php8.3-curl
13+
- php8.3-mbstring
14+
- php8.3-mysql
15+
- php8.3-xml
16+
- php8.3-zip
17+
- php8.3-xdebug
18+
- php8.3-soap
19+
- php8.3-redis
20+
- php8.3-pgsql
21+
- php8.3-mongodb
22+
# - php-mcrypt
23+
- php8.3-ldap
24+
- php8.3-imagick
25+
- php8.3-gd
26+
- php-json
27+
28+
- name: PHP - Download Composer
29+
script: scripts/download_composer.sh
30+
31+
- name: PHP - Install composer Globally
32+
become: true
33+
command: mv composer.phar /usr/local/bin/composer
34+
35+
- name: PHP - Set permissions on Composer
36+
become: true
37+
file:
38+
path: /usr/local/bin/composer
39+
mode: "a+x"
40+
41+
- name: PHP - Download phpMD.phar
42+
ansible.builtin.command:
43+
cmd: wget -O /home/{{ansible_env.SUDO_USER}}/phpmd.phar -c https://phpmd.org/static/latest/phpmd.phar
44+
creates: /home/{{ansible_env.SUDO_USER}}/phpmd.phar
45+
46+
- name: PHP - Set persmissions on phpMD.phar
47+
become: true
48+
file:
49+
path: /home/{{ansible_env.SUDO_USER}}/phpmd.phar
50+
mode: "a+x"

0 commit comments

Comments
 (0)