--- - name: Run simple versionscheck (optional) ansible.builtin.include_tasks: file: 'versioncheck.yml' when: submodules_versioncheck | bool - name: Update apt become: true ansible.builtin.apt: update_cache: true cache_valid_time: 3600 when: - ansible_pkg_mgr == "apt" - name: Install redis-server become: true ansible.builtin.package: name: 'redis-server' state: 'present'