νƒœκ·Έ 보관물: Vagrant

YAML 곡백 문제 (feat. Notepad++)

Notepad++둜 yml 파일 생성 ν›„ vagrant 둜 파일 λ„˜κΈ°λ©΄
어김없이 λ“±μž₯ν•˜λŠ” 곡백 문제..

ν•˜μ΄ . λ‚œΒ  곡백 였λ₯˜. γ…Žγ…Ž! 

κ·Έλž˜μ„œ YAML νŒŒμΌμ„ λ΄€λ‹€.

κΈ€μžμƒ‰μ΄ λΉ¨κ°•λΉ¨κ°•ν•œκ²Œ λ§ˆμŒμ— 걸리긴 ν•œλ°,,


vim 으둜 νŒŒμΌμ„ μ—΄μ–΄λ³΄λ‹ˆ 곡백이 μ΄μƒν•œ 것을 λŠλ‚„ 수 μžˆλ‹€.
λΆ„λͺ… notepad++에 λ¬Έμ œκ°€ 있으리..

κ·Έλ ‡λ‹€.Β  원인은 notpad++에 μžˆμ—ˆλ‹€..
Β ” μ„€μ • >Β  ν™˜κ²½ μ„€μ • > 언어메뉴 > νƒ­μ„€μ •-곡백으둜 λ°”κΎΈκΈ° “ λ₯Ό ν•˜μž.


λΉ¨κ°›λ˜ κΈ€μžλŠ” λ³Έ 색을 κ°–μ·„λ‹€.


vim 으둜 λ‹€μ‹œλ΄λ„ μ •μƒμ μœΌλ‘œ 곡백이 λ“€μ–΄κ°„ 것을 확인할 수 μžˆλ‹€.

 

[Vagrant Err] The SSH command responded with a non-zero exit status.

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"