Notepad++λ‘ yml νμΌ μμ± ν vagrant λ‘ νμΌ λκΈ°λ©΄
μ΄κΉμμ΄ λ±μ₯νλ 곡백 λ¬Έμ ..
νμ΄ . λ 곡백 μ€λ₯. γ
γ
!
κ·Έλμ YAML νμΌμ λ΄€λ€.
κΈμμμ΄ λΉ¨κ°λΉ¨κ°νκ² λ§μμ 걸리긴 νλ°,,
vim μΌλ‘ νμΌμ μ΄μ΄λ³΄λ κ³΅λ°±μ΄ μ΄μν κ²μ λλ μ μλ€.
λΆλͺ
notepad++μ λ¬Έμ κ° μμΌλ¦¬..
κ·Έλ λ€.Β μμΈμ notpad++μ μμλ€..
Β ” μ€μ >Β νκ²½ μ€μ > μΈμ΄λ©λ΄ > νμ€μ -곡백μΌλ‘ λ°κΎΈκΈ° “ λ₯Ό νμ.
λΉ¨κ°λ κΈμλ λ³Έ μμ κ°μ·λ€.
vim μΌλ‘ λ€μλ΄λ μ μμ μΌλ‘ κ³΅λ°±μ΄ λ€μ΄κ° κ²μ νμΈν μ μλ€.
Vagrantfileμμ λ³λμ¬νμ΄ μμ΄ μ½λ ν μ€μ μΆκ°νλ€.
λ°λ‘, ansible ν¨ν€μ§λ₯Ό μ€μΉνλ κ².
cfg.vm.provision "shell", inline: "yum install ansible -y"
κ·Όλ° μλ¬κ° μ΄κΉμμ΄ λ°μνλ€. γ
‘γ
‘a
The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in th-e log above. Please read the output to determine what went wrong.
yum install ansible -y λͺ
λ Ήμ΄κ° μ€ν¨νλ€λ λ΄μ©μΈλ°,, νΉμ λͺ°λΌμ
cfg.vm.provision "shell", inline: "yum install vim -y"
λ‘ λ°κΎΈλ vim ν¨ν€μ§λ μ μ€μΉλλ€.
κ·Έλ λ€.
ansible ν¨ν€μ§ μ€μΉνλ €λ©΄ μΆκ° ν¨ν€μ§ μ μ₯μκ° νμνλ€.
μλμ κ°μ΄ μ½λ ν μ€ λ μ
λ ₯ν΄μ μ μμ μΌλ‘ μ€μΉνλ€.
cfg.vm.provision "shell", inline: "yum install epel-release -y"
cfg.vm.provision "shell", inline: "yum install ansible -y"
π To Infinity and Beyond π