diff --git a/meta/.galaxy_install_info b/meta/.galaxy_install_info new file mode 100644 index 0000000..4f977e8 --- /dev/null +++ b/meta/.galaxy_install_info @@ -0,0 +1,2 @@ +install_date: 'Do 14 Mai 2026 19:50:56 ' +version: '' diff --git a/tasks/main.yml b/tasks/main.yml index 98a2105..6f66cf8 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,17 +9,31 @@ - ca-certificates - gnupg2 - lsb-release - - libmagickcore-6.q16-6-extra # SVG for imagick php module -- name: install PHP sury repository key - apt_key: +- name: Create keyrings directory + file: + path: /etc/apt/keyrings + state: directory + mode: '0755' + +- name: Download Sury PHP repository key + get_url: url: https://packages.sury.org/php/apt.gpg - state: present + dest: /etc/apt/keyrings/sury-php.gpg + mode: '0644' -- name: install PHP sury repository +- name: Add Sury PHP repository apt_repository: - repo: "deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main" + repo: >- + deb [signed-by=/etc/apt/keyrings/sury-php.gpg] + https://packages.sury.org/php/ + {{ ansible_distribution_release }} main state: present + filename: sury-php + +- name: Update apt cache + apt: + update_cache: yes - name: install PHP and recommendations apt: