- name: "Remove ubuntu stuff" apt: state: absent name: ubutu-server autoremove: yes - name: "Install my favourite applications" apt: update_cache: true state: present name: - tmux - htop - dnsutils - needrestart - curl - wget - netcat-openbsd - tree - net-tools - nano - psmisc - python3 - python3-venv - strace - ifstat - tcpdump - xxd - git - jq - name: "Install longhorn deps" apt: update_cache: true state: present name: - bash - curl - util-linux - grep - gawk - open-iscsi - nfs-common - jq when: inventory_hostname in groups["kubernetes"]