목록전체 글 (53)
삽더하기실수
nginx_install.yml --- - name: Install nginx on CentOS hosts: CentOS gather_facts: no become: yes # root 권한은 얻어 오는것 tasks: - name: install epel-release yum: name=epel-release state=latest - name: install nginx web server yum: name=nginx state=present - name: Upload default index.html for web server get_url: url=https://www.ginx.com dest=/usr/share/nginx/html mode=0644 - name: Start nginx web serv..

https://sapplusfloat.tistory.com/12 Vagrantfile(node1,2,server) 구성하기 Vagrantfile Vagrant_API_Version = "2" Vagrant.configure(Vagrant_API_Version) do |config| config.vm.define "ansible-node01" do |cfg| cfg.vm.box = "centos/7" cfg.vbguest.installer_hooks[:before_install] = ["yum install -y epel-release", "sleep 1"] cfg.vbgues sapplusfloat.tistory.com 해당 글 뒤로 이어집니다. bash_ssh_conf_4_CentOS.sh #! /us..
Vagrantfile Vagrant_API_Version = "2" Vagrant.configure(Vagrant_API_Version) do |config| config.vm.define "ansible-node01" do |cfg| cfg.vm.box = "centos/7" cfg.vbguest.installer_hooks[:before_install] = ["yum install -y epel-release", "sleep 1"] cfg.vbguest.installer_options = { allow_kernel_upgrade: false, enablerepo: true } cfg.vm.provider :virtualbox do |vb| vb.name = "Ansible-node01(Udemy-Bl..
오류 전체 내용 ==> ansible-server: Destroying VM and associated drives... C:/HashiCorp/Vagrant/embedded/gems/gems/i18n-1.14.1/lib/i18n.rb:210:in `translate': wrong number of arguments (given 2, expected 0..1) (ArgumentError) from C:/Users/wjral/.vagrant.d/gems/3.1.3/gems/vagrant-vbguest-0.21.0/lib/vagrant-vbguest/middleware.rb:24:in `call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.3.7/lib..
오류 내용 [ansible-server] No Virtualbox Guest Additions installation found. Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.navercorp.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> Running transaction check ---> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be updated ---> Package centos-release.x86_64 0:7-9..
"Vagrant will use to store local environment-specific state is not accessible. The directory specified as the local data directory must be both readable and writable for the user that is running Vagrant" 해당 오류 발생시 명렴 프롬포트를 관리자 권한으로 실행 했는지 확인해보자 필자는 관리자 권한으로 변경후 정상적으로 실행되었다.
Vagrantfile 1. 베이그런트에서 부르는 호스트 이름 작성 2. 버추얼박스에서 구분하는 호스트 이름 작성 3. 가상머신의 호스트 이름을 변경 4. 호스트 PC와 가상머신 간에는 공유 디렉터리는 사용하지 않음 5. 가상머신에서 인터넷으로 연결되는 IP 설정 6. 호스트PC의 포트를 IP 주소와 유사하게 변경 bootstrap.sh 1. yum을 통해 epel 을 설치 2. yum을 통해 ansible 을 설치 vagrantfile # This Vagrantfile can be used to develop Vagrant. Note that VirtualBox # doesn't run in VirtualBox so you can't actually _run_ Vagrant within # the VM ..

1. 윈도우키 + r 키를 눌러 실행창을 연다. 2. cmd를 입력하고 확인을 누른다. 3. 하단 사진처럼 ipconfig 명령을 실행하여 게이트웨이 주소값을 확인한다. 4. 인턴넷 브라우져를 열어 해당 ip를 검색한다. 5. 공유기 화면으로 들어간다. 사용자의 계정명은 admin이며 암호는 유선 MAC 주소 뒤 6자리_ admin 6. 고급 설정 클릭 7.운용 모드를 NAT로 변경하고 확인을 눌러준다. 8. 맨 처음 진행한것처럼 ipconfig 명령어 사용하여 ip 확인하면 공인 ip로 할당되어있는것을 볼 수 있다.