diff --git a/tasks/debian.yml b/tasks/debian.yml index 18d8986..2f5397b 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml @@ -78,6 +78,17 @@ - ansible_distribution == "Debian" - ansible_distribution_major_version|int() == 12 +- name: sury repo in sources list, debian13 + tags: apt + lineinfile: + dest: /etc/apt/sources.list.d/php-sury.list + line: 'deb https://packages.sury.org/php/ trixie main' + create: yes + when: + - ansible_distribution == "Debian" + - ansible_distribution_major_version|int() == 13 + + - name: apt update, debian11-99 tags: apt apt: @@ -86,12 +97,12 @@ - ansible_distribution == "Debian" - ansible_distribution_major_version|int() >= 11 -- name: set phpver for debian11 ubuntu20 +- name: set phpver for debian11 set_fact: phpver: "7.4" when: - ansible_distribution == "Debian" - - ansible_distribution_major_version|int() == 12 + - ansible_distribution_major_version|int() == 11 - name: set phpver for debian debian12 set_fact: @@ -100,6 +111,13 @@ - ansible_distribution == "Debian" - ansible_distribution_major_version|int() == 12 +- name: set phpver for debian debian12 + set_fact: + phpver: "8.4" + when: + - ansible_distribution == "Debian" + - ansible_distribution_major_version|int() == 13 + - name: set phpver for ubuntu20 set_fact: phpver: "7.4"