--- # A package the role must remove, and the locales tool the role assumes exists # (it does on a stock Ubuntu host). - name: Prepare hosts: all gather_facts: false tasks: - name: Install a package on the role's remove list and locale-gen ansible.builtin.apt: name: [telnet, locales] state: present update_cache: true