--- - name: install server specific packages ansible.builtin.apt: update_cache: yes pkg: - python3-pip - python3-virtualenv - name: create dir for virtualenv ansible.builtin.file: path: /home/ansible/virtualenv state: directory - name: install list of packages _via pip_ # works different with debian 12 ansible.builtin.pip: name: roundup virtualenv: /home/ansible/virtualenv state: latest