-
Notifications
You must be signed in to change notification settings - Fork 0
/
ans-plbk-install-vagr-vbox.yml
executable file
·78 lines (78 loc) · 1.98 KB
/
ans-plbk-install-vagr-vbox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
- hosts: 127.0.0.1
become: true
become_method: sudo
become_user: root
tasks:
- name: Update cache & Full system update
apt:
update_cache: true
force_apt_get: true
- name: Update packages and upgrade
apt:
update_cache: true
upgrade: dist
force_apt_get: true
- name: Update all packages to their latest version
apt:
name: "*"
state: latest
- name: Remove useless packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes
- name: Install aptitude
apt:
name: aptitude
state: latest
update_cache: true
- name: Add Docker GPG apt Key
apt_key:
url: https://apt.releases.hashicorp.com/gpg
state: present
- name: Add Vagrant Repository
apt_repository:
repo: deb https://apt.releases.hashicorp.com focal stable
state: present
- name: Install required system packages
apt:
pkg:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- python3-pip
- virtualenv
- python3-setuptools
- net-tools
- mc
- tldr
- xubuntu-desktop
- x2goserver
- x2goserver-xsession
- x2goclient
- linux-headers-generic
- build-essential
- dkms
- virtualbox
- virtualbox-ext-pack
- virtualbox-guest-additions-iso
- virtualbox-qt
- openjdk-11-jdk
- openjdk-11-jre
- vagrant
state: latest
update_cache: true
- name: VboxDrievr verification
shell:
cmd: modprobe vboxdrv
become_user: root
- name: VboxDrievr verification
shell:
cmd: modprobe vboxnetadp
become_user: root
- name: Vagrant Up
command: vagrant up
become_user: root