An Ansible role for installing, configuring, and starting Docker within a Vagrant machine. Simply depends on the
upstream naftulikay.docker
and naftulikay.vagrant-base
roles and
specifies that vagrant_user
should be added to the docker
system group.
Available on Ansible Galaxy at naftulikay.vagrant-docker
.
Officially tested operating systems are listed in the Galaxy manifest.
vagrant_user
- The user name of the Vagrant user, defaults to
vagrant
. naftulikay.docker
: Installs and configures Docker.naftulikay.vagrant-base
: Provides base Vagrant configuration.
Please see the upstream
naftulikay.vagrant-base
andnaftulikay.docker
roles for additional supported variables.
Here are some example playbooks to get started with.
Simply get that Docker dockering in Vagrant:
---
- name: install
hosts: all
become: true
roles: [vagrant-docker]
If your Vagrant box uses a non-vagrant
name for the Vagrant user:
---
- name: install
hosts: all
become: true
roles: [{ role: vagrant-docker, vagrant_user: notvagrant }]
MIT