## This playbook deploys a FvS desktop machine.
---
- name: apply configuration to the machines
  hosts: all
  remote_user: ansible
  become: yes
  vars:
    extra_pkgs:
      - webext-privacy-badger
      - webext-ublock-origin
      - vim
      - emacs
      - elpa-magit
      - elpa-color-theme-modern
      - vlc
      - gimp
      - inkscape
      - bluefish
      - git
      - gitk
      - gitg
      - mc
      - tmux
      - wireshark
      - nmap
      - netcat-openbsd
      - net-tools
      - ghex
      - thonny
      - spyder
      - mu-editor
      - dia
      - vym
      - tree
      - console-setup
      - virt-manager
      - libreoffice-l10n-de
    extra_pkgs_bpo: [ libreoffice ] # [ linux-image-amd64 ]  # [ libreoffice ]
    ansible_python_interpreter: "/usr/bin/python3"

  roles:
    - up2date_debian
    - fvs-sssd
    - fvs-mount
    - fvs-client
    ## Choose either gnome or KDE:
    - gnome
    #- kde

  tasks:
    - name: Add local user 'virti' in the 'libvirt' group
      ansible.builtin.user:
        name: virti
        password: $y$j9T$DuSvAO63v5LvoJmJ1rB0B0$D4tovIz79AdLHs5I6tYa7rxr3SWknQeUFvGaaKvUpo3
        comment: Libvirt VM User,,,
        shell: /bin/bash
        groups: libvirt
        append: yes