Created
May 11, 2015 10:32
-
-
Save gin0606/0b60cf25c66d5c0f6a47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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