--- - name: Install various utilities on Debian/Ubuntu hosts: all become: yes gather_facts: yes tasks: - name: Update apt cache (Debian/Ubuntu) apt: update_cache: yes cache_valid_time: 3600 # Cache valid for 1 hour - name: Install packages for Debian/Ubuntu apt: name: - build-essential - git - curl - wget - htop - tar - net-tools - unzip state: present # This will run after the previous play is completed - import_playbook: install_docker.yml