]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/init-local-phd.yml
Refactor(init-local-phd): Split FUSE filesystems
[ansible.git] / playbooks / debian / init-local-phd.yml
index 9ce6be3f7793bdcef1aa6de6afca52bdc2c470c6..4b0f24fea5cae0bccd807737768e93aa6df66847 100644 (file)
@@ -1,6 +1,6 @@
 - name: Update local user phd
   hosts: "{{ hosts | default('localhost') }}"
-  gather_facts: false
+  gather_facts: true
   vars:
     system_groups: root,adm,disk,cdrom,floppy,sudo,audio,www-data,video,plugdev,staff,users,Debian-exim,fuse,sambashare,bluetooth,davfs2,vboxusers,input
   tasks:
       user:
         name: phd
         groups: "{{ system_groups }}"
+    - name: Prepare /etc/apt/sources to install VirtualBox
+      become: true
+      copy:
+        content: "deb http://download.virtualbox.org/virtualbox/debian {{ ansible_facts.distribution_release }} contrib non-free"
+        dest: /etc/apt/sources.list.d/virtualbox.list
+        owner: root
+        group: root
+        mode: 0640
     - name: Install packages
       become: true
       apt:
         autoremove: yes
         cache_valid_time: 3600
         install_recommends: no
-        name: ['acpi', 'audacious', 'chromium', 'fuse-convmvfs', 'curlftpfs',
-               'docutils-doc', 'fvwm', 'gajim', 'gxmessage',
-               'hibernate', 'imagemagick', 'imagemagick-doc',
-               'libdbus-1-3', # for Firefox
-               'mpv', 'pavucontrol', 'pinentry-gtk2', 'pulseaudio',
-               'qpdfview', 'rxvt-unicode', 'sqlite3-doc', 'sshfs', 'uswsusp',
-               'vim-doc', 'vim-gtk3',
-               'x11-apps', 'x11-xserver-utils', 'xbindkeys', 'xclip', 'xinit',
-               'xli', 'xloadimage', 'xsel',
-               'xorg', 'xscreensaver', 'xserver-xorg',
-               'xserver-xorg-input-kbd', 'xserver-xorg-input-mouse',
-               'xserver-xorg-input-synaptics', 'xserver-xorg-legacy',
-               'xserver-xorg-video-vesa', 'xxkb',
+        name: [
+          # System
+          'acpi', 'hibernate',
+          'pinentry-gtk2', # for GnuPG
+          'pptp-linux', 'uswsusp',
+          # Audio
+          'audacious', 'pavucontrol', 'pulseaudio',
+          # Bluetooth
+          'blueman', 'bluetooth', 'bluez-tools', 'pulseaudio-module-bluetooth',
+          # Browsers
+          'chromium',
+          'libdbus-1-3', # for Firefox
+          # Docs and texts
+          'docutils-doc', 'evince', 'fbreader', 'sqlite3-doc',
+          'vim-doc', 'vim-gtk3', # 'xpdf',
+          # FUSE filesystems
+          'fuse-convmvfs', 'curlftpfs', 'ntfs-3g', 'sshfs',
+          # Office docs
+          'catdoc', 'docx2txt', 'xlsx2csv', 'wv',
+          # LibreOffice/OpenOffice docs
+          'ods2tsv', 'odt2txt',
+          # Image handling
+          'imagemagick', 'imagemagick-doc',
+          'xli', 'xloadimage',
+          # Instant messaging
+          #'pidgin', 'pidgin-awayonlock', 'pidgin-encryption',
+          #'pidgin-extprefs', 'pidgin-mra', 'pidgin-openpgp', 'pidgin-otr',
+          #'pidgin-plugin-pack', 'pidgin-privacy-please', 'pidgin-skype',
+          # Video
+          'mpv',
+          # VirtualBox
+          'virtualbox-6.1',
+          # X Windows
+          'fvwm', 'gxmessage', 'rxvt-unicode',
+          'x11-apps', 'x11-xserver-utils', 'xbindkeys', 'xclip', 'xinit',
+          'xsel', 'xorg', 'xscreensaver', 'xserver-xorg',
+          'xserver-xorg-input-kbd', 'xserver-xorg-input-mouse',
+          'xserver-xorg-input-synaptics', 'xserver-xorg-legacy',
+          'xserver-xorg-video-vesa', 'xxkb',
         ]
         state: latest
         update_cache: yes