--- # playbook.yml - name: Install base vm hosts: all become: true remote_user: root roles: - vm_mount tasks: - name: Install lxqt ansible.builtin.apt: name: - lxqt - spice-vdagent - vim - git - dolphin - mariadb-server - extrepo update_cache: true - name: Remove screensaver ansible.builtin.apt: name: - xscreensaver autoremove: true state: absent - name: Set link to dolphin ansible.builtin.file: src: /usr/bin/dolphin dest: /usr/local/bin/pcmanfm-qt state: link - name: Activate contrib and non-free repos for extrepo ansible.builtin.lineinfile: dest: /etc/extrepo/config.yaml regexp: '^#\s*-\s*(contrib|non-free)' line: '- \1' backrefs: true - name: Enable VirtualBox repository using extrepo ansible.builtin.command: cmd: extrepo enable virtualbox - name: Install Virtualbox ansible.builtin.apt: name: - virtualbox-7.2 update_cache: true - name: Copy user home ansible.builtin.copy: src: user/ dest: /home/user mode: '0644' owner: user group: user - name: Allow sudo without password for user ansible.builtin.lineinfile: path: /etc/sudoers.d/95-user line: 'user ALL=(root) NOPASSWD: ALL' create: true owner: root group: root mode: '0700' - name: Enable autologin for user ansible.builtin.copy: content: | [Autologin] User=user Session=lxqt.desktop dest: /etc/sddm.conf mode: '0644' - name: Set grub default to zero ansible.builtin.lineinfile: dest: /etc/default/grub regexp: '^GRUB_TIMEOUT=.*' line: GRUB_TIMEOUT=0 notify: Update grub handlers: - name: Update grub ansible.builtin.command: update-grub