[root@localhost ~]# ansible localhost -m shell -a "wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo"
[WARNING]: Consider using get_url or uri module rather than running wget
localhost | SUCCESS | rc=0 >>
--2019-08-25 16:45:40-- http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
Resolving download.virtualbox.org (download.virtualbox.org)... 104.90.200.30
Connecting to download.virtualbox.org (download.virtualbox.org)|104.90.200.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 259 [text/plain]
Saving to: ‘/etc/yum.repos.d/virtualbox.repo’
0K 100% 10.2M=0s
2019-08-25 16:45:41 (10.2 MB/s) - ‘/etc/yum.repos.d/virtualbox.repo’ saved [259/259]
[root@localhost ~]# ansible localhost -m shell -a "yum install -y VirtualBox-6.0" [WARNING]: Consider using yum module rather than running yum
[WARNING]: Consider using get_url or uri module rather than running wget
localhost | SUCCESS | rc=0 >>
--2019-08-25 16:45:40-- http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
Resolving download.virtualbox.org (download.virtualbox.org)... 104.90.200.30
Connecting to download.virtualbox.org (download.virtualbox.org)|104.90.200.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 259 [text/plain]
Saving to: ‘/etc/yum.repos.d/virtualbox.repo’
0K 100% 10.2M=0s
2019-08-25 16:45:41 (10.2 MB/s) - ‘/etc/yum.repos.d/virtualbox.repo’ saved [259/259]
[root@localhost ~]# ansible localhost -m shell -a "yum install -y VirtualBox-6.0" [WARNING]: Consider using yum module rather than running yum
localhost | SUCCESS | rc=0 >>
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* extras: mirror.nbrc.ac.in
* updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-6.0.x86_64 0:6.0.10_132072_el7-1 will be installed
--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: VirtualBox-6.0-6.0.10_132072_el7-1.x86_64
--> Running transaction check
---> Package SDL.x86_64 0:1.2.15-14.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
VirtualBox-6.0 x86_64 6.0.10_132072_el7-1 virtualbox 110 M
Installing for dependencies:
SDL x86_64 1.2.15-14.el7 base 204 k
Transaction Summary
================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 111 M
Installed size: 230 M
Downloading packages:
Public key for VirtualBox-6.0-6.0.10_132072_el7-1.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total 2.6 MB/s | 111 MB 00:42
Retrieving key from https://www.virtualbox.org/download/oracle_vbox.asc
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : SDL-1.2.15-14.el7.x86_64 1/2
Installing : VirtualBox-6.0-6.0.10_132072_el7-1.x86_64 2/2
Creating group 'vboxusers'. VM users must be member of that group!
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-862.el7.x86_64
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-3.10.0-862.el7.x86_64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Verifying : SDL-1.2.15-14.el7.x86_64 1/2
Verifying : VirtualBox-6.0-6.0.10_132072_el7-1.x86_64 2/2
Installed:
VirtualBox-6.0.x86_64 0:6.0.10_132072_el7-1
Dependency Installed:
SDL.x86_64 0:1.2.15-14.el7
Complete!warning: /var/cache/yum/x86_64/7/virtualbox/packages/VirtualBox-6.0-6.0.10_132072_el7-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Importing GPG key 0x98AB5139:
Userid : "Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>"
Fingerprint: 7b0f ab3a 13b9 0743 5925 d9c9 5442 2a4b 98ab 5139
From : https://www.virtualbox.org/download/oracle_vbox.asc
[root@localhost ~]#
Comments
Post a Comment