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"