Fix Molecule CI issues.

This commit is contained in:
Jeff Geerling 2018-09-29 14:47:37 -05:00
parent 6e92b87062
commit b973cd155f

View File

@ -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