Page 1 of 1

vagrant mageia8 image

PostPosted: Jun 22nd, '22, 12:33
by defwxyz
Hello,

I've created a minimal image of mageia8 for virtualbox provider.
You can try it with the following Vagrantfile:

Code: Select all
Vagrant.configure("2") do |config|
  config.vm.box = "defwxyz/mageia8"
end


using these commands :
to construct the vm:
Code: Select all
vagrant up

and then to connect inside the vm:
Code: Select all
vagrant ssh





Here is another way to use the image:
You can use ansible_local provisioning with the following Vagrantfile and playbook.yml :

Code: Select all
$ cat Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "defwxyz/mageia8"
  config.vm.provision "shell", inline: "urpmi --auto ansible"
  config.vm.provision "ansible_local" do |ansible|
    ansible.playbook = "playbook.yml"
  end
end

$ cat playbook.yml
- hosts: all
  connection: local
  tasks:
    - name: "display facts"
      debug:
        var: ansible_facts

Re: vagrant mageia8 image

PostPosted: Jun 22nd, '22, 19:14
by doktor5000
Thanks for sharing! :)