--- - name: php | apt update cache ansible.builtin.apt: update_cache: yes cache_valid_time: 86400 - name: php | install requirements ansible.builtin.apt: name: - apt-transport-https - lsb-release - ca-certificates - curl state: present - name: php | add sury key ansible.builtin.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 ansible.builtin.apt_repository: repo: deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main state: present filename: php-sury