Skip to content

naftulikay/ansible-role-vagrant-docker

Repository files navigation

ansible-role-vagrant-docker Build Status

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.

Requirements

Officially tested operating systems are listed in the Galaxy manifest.

Role Variables

vagrant_user
The user name of the Vagrant user, defaults to vagrant.

Please see the upstream naftulikay.vagrant-base and naftulikay.docker roles for additional supported variables.

Dependencies

Example Playbook

Here are some example playbooks to get started with.

Defaults

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 }]

License

MIT

About

An Ansible role for installing Docker in a Vagrant machine.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published