Giter Site home page Giter Site logo

ansible-vm's Introduction

Ansible VM

Quickly sets up a Virtual Machine with Ansible installed for use on platforms where Ansible isn't available (like Windows for the moment).

The VM configures itself using Ansible as inspired by Christian's Quora post.

Usage

Generally, I add the path to the Ansible playbooks as a synced folder in Vagrantfile, ssh into the VM and run ansible-playbooks from that session.

There is a trick to be aware of with the synced folders however. Ansible allows inventories (host listings) to be executable files (if you want to use some sort of host inventory system or API response). If the inventory file given is executable Ansible will try and run it - which doesn't work if you are using static host files. By default, VirtualBox mounts shares with all files as executable so we need to disable this with a mount flag:

config.vm.synced_folder "../other-project/playbooks", "/project", mount_options: ["fmode=660"]

Use fmode=666 if you're logging in as a user that is not in the vboxsf group for some reason (vagrant is in the group in most boxes).

ansible-vm's People

Contributors

rmasters avatar

Watchers

 avatar  avatar

ansible-vm's Issues

PPA appears to be installing an old version of Ansible

vagrant@precise32:/prj/ops$ ansible-playbook -i production webservers.yml
ERROR: roles is not a legal parameter in an Ansible Playbook
vagrant@precise32:/prj/ops$ ansible --version
ansible 1.1

Should be 1.3.x, which gets installed when the VM's been dist-upgraded.

Given that this is a 142MB download, I'd recommend keeping this VM around for a while...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.