--- - hosts: all vars: php_enable_webserver: false pre_tasks: - name: Update apt cache. apt: update_cache=yes cache_valid_time=600 when: ansible_os_family == 'Debian' changed_when: false roles: - geerlingguy.php - role_under_test