From 5de3903a35b4a1574296309b873440dc1522b43c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 1 May 2020 13:08:40 +0300 Subject: [PATCH] Feat(init-local-phd): Install VirtualBox --- playbooks/debian/init-local-phd.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/playbooks/debian/init-local-phd.yml b/playbooks/debian/init-local-phd.yml index d70d739..d4e6cef 100644 --- a/playbooks/debian/init-local-phd.yml +++ b/playbooks/debian/init-local-phd.yml @@ -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: @@ -19,6 +19,14 @@ 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: @@ -50,6 +58,8 @@ #'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', -- 2.39.5