- name: Ensure the system can use the HTTPS transport for APT. stat: path: /usr/lib/apt/methods/https register: apt_https_transport - name: Install APT HTTPS transport. apt: name: "apt-transport-https" state: present update_cache: yes when: not apt_https_transport.stat.exists - name: Install basic packages package: name: ['vim','aptitude','bash-completion','tmux','tree','htop','wget','unzi> state: present update_cache: yes