mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +01:00
Fix Molecule CI issues.
This commit is contained in:
parent
6e92b87062
commit
b973cd155f
@ -10,6 +10,11 @@
|
||||
php_enablerepo: "remi,remi-php70"
|
||||
php_install_recommends: false
|
||||
|
||||
handlers:
|
||||
- name: update apt cache
|
||||
apt: update_cache=true
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=true cache_valid_time=600
|
||||
@ -40,12 +45,10 @@
|
||||
apt_repository:
|
||||
repo: "deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main"
|
||||
state: present
|
||||
register: php_ondrej_debian_repo
|
||||
when: ansible_distribution == "Debian"
|
||||
notify: update apt cache
|
||||
|
||||
- name: Update apt caches after repo is added (Debian).
|
||||
apt: update_cache=yes
|
||||
when: php_ondrej_debian_repo.changed and (ansible_distribution == "Debian")
|
||||
- meta: flush_handlers
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.repo-remi
|
||||
|
Loading…
Reference in New Issue
Block a user