Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vagrant-ansible-local-privileged

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vagrant-ansible-local-privileged

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Vagrant Ansible Local

This Vagrant plugin allow provisioning your VM with ansible playbooks directly from the guest VM using --connection=local

Installation

install this vagrant plugin by running

vagrant plugin install vagrant-ansible-local

requirement

Your vagrant box should have ansible installed on it, if it's not the case you could use to shell provisioner to install it.

Usage

Configure your VagrantFile with the ansibleLocal provisioner:

config.vm.provision :ansibleLocal, :playbook => "ansible/ansible.yml"

You can run ansible as the vagrant user (rather than as root) by setting privileged to false:

config.vm.provision :ansibleLocal, :playbook => "ansible/ansible.yml", :privileged => false

In case your ansible version is between 1.5 and 1.8 and you are running into an error message saying ERROR: provided hosts list is empty, you can either add anything to your /etc/ansible/hosts file or change the configuration of the provisioner:

config.vm.provision :ansibleLocal, :playbook => "playbooks/playbook.yml", :raw_arguments => "-i 'localhost,'"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

TODO

  • cleanup parameters
  • auto build or mount inventory-file and prevent issue with non executable file mounted with 777
  • add command for running ansible-playbook on demand

FAQs

Package last updated on 31 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc