diff --git a/php/tasks/main_bookworm.yml b/php/tasks/main_bookworm.yml index 74329046..8982f8f5 100644 --- a/php/tasks/main_bookworm.yml +++ b/php/tasks/main_bookworm.yml @@ -1,8 +1,11 @@ --- -- name: "Set php version to 8.1 (Debian 12)" +- name: "Set php version to 8.2(Debian 12)" set_fact: - php_version: "8.1" + php_version: "8.2" + when: + - php_sury_enable == false + check_mode: no - name: "Set php config directories (Debian 12)" set_fact: diff --git a/php/tasks/main_bullseye.yml b/php/tasks/main_bullseye.yml index 73e34483..d577ea5b 100644 --- a/php/tasks/main_bullseye.yml +++ b/php/tasks/main_bullseye.yml @@ -5,7 +5,7 @@ php_version: "7.4" when: - php_sury_enable == 'False' - - php_version != '7.4' + check_mode: no - name: "Set variables (Debian 11)" set_fact: diff --git a/php/tasks/main_buster.yml b/php/tasks/main_buster.yml index b7722716..24673378 100644 --- a/php/tasks/main_buster.yml +++ b/php/tasks/main_buster.yml @@ -1,12 +1,14 @@ --- +- debug: + msg: "{{ php_sury_enable }}" + - name: "Set php version to 7.3 if Sury repo is not enabled" set_fact: php_version: "7.3" - when: - - php_sury_enable == 'False' - - php_version != '7.3' - + when: + - php_sury_enable == false + check_mode: no - name: "Set variables (Debian 10)" set_fact: