php/tasks/requirements.yml
2024-12-17 18:10:38 +01:00

27 lines
579 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: php | apt update cache
apt:
update_cache: yes
cache_valid_time: 86400
- name: php | install requirements
apt:
name:
- apt-transport-https
- lsb-release
- ca-certificates
- curl
state: present
- name: php | add sury key
apt_key:
url: https://packages.sury.org/php/apt.gpg
keyring: /etc/apt/trusted.gpg.d/php.gpg
state: present
- name: php | add sury repository
apt_repository:
repo: deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main
state: present
filename: php-sury