2018-09-30 19:45:02 +02:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
become: true
|
|
|
|
|
|
|
|
vars:
|
|
|
|
php_enable_webserver: false
|
2018-12-06 22:29:10 +01:00
|
|
|
php_version: '7.2'
|
2018-09-30 19:45:02 +02: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.
|
2019-03-24 01:19:36 +01:00
|
|
|
shell: |
|
|
|
|
set -o pipefail
|
|
|
|
php -v | grep -F '{{ php_version }}'
|
2018-09-30 19:45:02 +02:00
|
|
|
changed_when: false
|