geerlingguy / ansible-role-php-versions

Ansible Role - PHP Versions
https://galaxy.ansible.com/geerlingguy/php-versions/
MIT License
98 stars 73 forks source link

Adds apt cache update before installing dependencies #12

Closed tseho closed 6 years ago

tseho commented 7 years ago

The task Add dependencies for PHP versions (Debian). is failing when the role ansible-role-php-versions is the first one to be run in a playbook since apt cache has never been run.

geerlingguy commented 6 years ago

@tseho - As in the test playbook, I'd rather have apt cache operations performed as part of the playbook / upstream from Ansible roles (otherwise every Ansible role I use would be adding a task for Debian-based OSes for updating the apt cache).