목록2023/07 (4)
삽더하기실수

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 해당 부분을 주석을 제거해준다 정상 확인