--- - hosts: all vars: firewall_allowed_tcp_ports: - "9123" pre_tasks: - name: Update apt cache. apt: update_cache=yes cache_valid_time=1200 when: ansible_os_family == 'Debian' changed_when: false roles: - role_under_test