Skip to content

Instantly share code, notes, and snippets.

@gin0606
Created May 11, 2015 10:32
Show Gist options
  • Save gin0606/0b60cf25c66d5c0f6a47 to your computer and use it in GitHub Desktop.
Save gin0606/0b60cf25c66d5c0f6a47 to your computer and use it in GitHub Desktop.
func install_vagrant_plugin(item) {
- command: vagrant plugin list | grep -E '^{{ item }}'
register: exist_vagrant_plugin
- shell: vagrant plugin install {{ item }}
when: not exist_vagrant_plugin
}
items.each {|item| install_vagrant_plugin(item) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment