Skip to content

Commit

Permalink
Attempt to get Debian working too. Issue #94.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Jan 30, 2025
1 parent b334b49 commit c4b485c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@
method: GET
register: keyserver_response

- name: Add Ondrej's PHP PPA
- name: Set URI for Ondrej's repo (Ubuntu).
ansible.builtin.set_fact:
ondrej_repo_uri: https://ppa.launchpadcontent.net/ondrej/php/ubuntu
when: ansible_distribution == "Ubuntu"

- name: Set URI for Ondrej's repo (Debian).
ansible.builtin.set_fact:
ondrej_repo_uri: https://packages.sury.org/php/dists/bullseye/
when: ansible_distribution == "Debian"

- name: Add Ondrej's PHP repo.
become: true
ansible.builtin.deb822_repository:
state: present
name: "ondrej-php-{{ ansible_distribution_release }}"
types: [deb]
uris: [https://ppa.launchpadcontent.net/ondrej/php/ubuntu]
uris: ["{{ ondrej_repo_uri }}"]
suites: ["{{ ansible_facts['distribution_release'] }}"]
components: [main]
signed_by: "{{ keyserver_response.content }}"
Expand Down

0 comments on commit c4b485c

Please sign in to comment.