목록전체 글 (53)
삽더하기실수

Vagrant 기본 명령어 vagrant init 프로비저닝을 해주는 예제 스크립트를 생성한다. vagrant up Vagrantfile을 읽어 들여 프로비저닝을 진행한다. vagrant halt 베이그런트에서 다루는 호스트들을 종료한다. vagrant destroy 베이그런트의 호스트들을 삭제한다. vagrant ssh 베이그런트의 호스트에 ssh로 접속한다 vagrant provision 베이그런트의 호스트의 설정 변경을 적용한다. vagrant install 설치전 필요 프로그램 https://developer.hashicorp.com/vagrant/downloads?product_intent=vagrant Install | Vagrant | HashiCorp Developer Explore Vag..

vim plugin 가져오기 curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim vi ~/.vimrc call plug#begin('~/.vim/plugged') Plug 'pearofducks/ansible-vim' call plug#end() vim install yum install vim-enhanced yum -y install git vim :PlugInstall vi ~/.bashrc 마지막줄에 작성 > vi 를 입력해도 자동으로 vim이 입력되게 한다. alias vi='vim' su - > 환경파일을 적용시켜준다. 적용 완료

[ uptime 확인 ] ansible nginx -m shell -a "uptime" -k => 명령어 풀이 : nginx 그룹을 호스트로 사용하며, shell이라는 모듈을 통해서 uptime 을 실행한다. [ disk 확인 ] ansible nginx -m shell -a "df -lh" -k => 명령어 풀이 : nginx 그룹을 호스트로 사용하며, shell이라는 모듈을 통해서 df -lh 을 실행한다. [ 메모리 확인 ] ansible nginx -m shell -a "free -mh" -k [ 유저 생성 ] ansible nginx -m user -a "name=test password=1" -k => 명령어 풀이 : nginx 그룹을 호스트로 사용하며, user 이라는 모듈을 통해서 name..

에러메시지 FAILED! => { "msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host." } 해결방법 export ANSIBLE_HOST_KEY_CHECKING=False ansible all -m ping -k OR vi /etc/ansible/ansible.cfg >host_key_checking = False 해당 부분을 주석을 제거해준다 정상 확인