Skip to content

Commit

Permalink
[pas] Use PHP 8.3
Browse files Browse the repository at this point in the history
Also, addes the Ondrej Sury ppa back to the ppa role, since jammy's
version of PHP is no longer recent enough for our needs.
  • Loading branch information
sandbergja committed Oct 1, 2024
1 parent 7ba8588 commit d921ef2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions group_vars/pas/production.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
php_version: "8.1"
php_unwanted_version: "7.4"
php_version: "8.3"
php_unwanted_version: "8.1"
pas_db_name: "pas_prod"
pas_db_user: "pas"
pas_password: '{{ vault_pas_db_password }}'
Expand Down
4 changes: 2 additions & 2 deletions group_vars/pas/staging.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
php_version: "8.1"
php_unwanted_version: "7.4"
php_version: "8.3"
php_unwanted_version: "8.1"
pas_db_driver: 'mysql'
pas_db_name: "pas_staging"
pas_db_user: "pas"
Expand Down
6 changes: 6 additions & 0 deletions roles/php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
- apt-transport-https
- dirmngr

- name: php | Add ondrej sury repository
ansible.builtin.apt_repository:
repo: "ppa:ondrej/php"
update_cache: true
state: present

- name: php | install php
ansible.builtin.apt:
name: ["php{{ php_version }}", "php{{ php_version }}-dev", "php{{ php_version }}-curl", "php{{ php_version }}-zip"]
Expand Down

0 comments on commit d921ef2

Please sign in to comment.