--- - name: apt update apt: update_cache: yes cache_valid_time: 3600 - name: Install apache2 apt: pkg: - apache2