logo
  • 教程列表
  • SO官方文档
  • 规定
    • 最小的设置
    • 启动并配置该框
    • 启动框而不进行配置
    • 提供一个运行框
    • Shell 配置器
    • 从文件运行 shell 脚本(不使用内联)
  1. StackOverflow 文档
  2. vagrant 教程
  3. 规定
  4. 最小的设置

最小的设置

Created: November-22, 2018

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provision "ansible" do |ansible|
    ansible.playbook = "vagrant-playbook.yml"
  end
end

无业游民,playbook.yml

  tasks:
    - name: Say hello
      debug:
        msg: 'Hello, World'
  • 启动并配置该框
  • 规定

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明