- name: Temporary workaround for sudo-rs hosts: all gather_facts: false become: false tasks: - name: Detect sudo variant ansible.builtin.raw: command -v sudo.ws || true register: sudo_ws_check changed_when: false - name: Set become_exe fact based on sudo variant present ansible.builtin.set_fact: ansible_become_exe: "{{ 'sudo.ws' if sudo_ws_check.stdout | trim | length > 0 else 'sudo' }}" - name: Install basic features hosts: all gather_facts: true become: true tasks: - name: Update apt ansible.builtin.apt: update_cache: true cache_valid_time: 3600 - name: Install net-tools ansible.builtin.apt: name: net-tools state: present - name: Try to install neofetch ansible.builtin.apt: name: neofetch state: present update_cache: true register: neofetch_install failed_when: false become: true - name: Install fastfetch if neofetch is unavailable ansible.builtin.apt: name: fastfetch state: present when: neofetch_install is failed become: true - name: Setup tty IP display hosts: all gather_facts: true become: true tasks: - name: Write to /etc/issue ansible.builtin.lineinfile: path: /etc/issue line: 'eth0: \4{eth0} | eth1: \4{eth1}' # This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de