ansible install vagrant /virtualbox repo's

[root@localhost ~]# cat vagrant.yml
---
- name: Install vagrant virtualbox
  hosts: localhost
  connection: local
  gather_facts: no
  tasks:
  - name: Install virtualbox repo
    yum:
     name: https://download.virtualbox.org/virtualbox/6.0.12/VirtualBox-6.0-6.0.12_133076_el7-1.x86_64.rpm
    state: present
  - name: Install vagrant repo
    yum:
     name: https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_i686.rpm
    state: present
[root@localhost ~]# rpm -qa vagrant
vagrant-2.2.5-1.i686

[root@localhost ~]# rpm -qa VirtualBox-6.0
VirtualBox-6.0-6.0.12_133076_el7-1.x86_64

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster