ansible-role-php-versions/molecule/default/8.2.yml

25 lines
535 B
YAML
Raw Permalink Normal View History

2021-03-18 18:18:35 +01:00
---
- name: Converge
hosts: all
become: true
vars:
php_enable_webserver: false
2024-07-05 04:57:14 +02:00
php_version: '8.2'
2021-03-18 18:18:35 +01:00
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'
roles:
- role: geerlingguy.repo-remi
when: ansible_os_family == 'RedHat'
- role: geerlingguy.php-versions
- role: geerlingguy.php
post_tasks:
- name: Confirm PHP version is correct.
shell: php -v | grep -F '{{ php_version }}'
changed_when: false