목록전체 글 (54)
삽더하기실수
1. 크롬에서 F12키를 눌러서 개발자 모드로 들어간다. 2. 해당 부분 클릭 간단하게 드래그가 되는 것을 확인할 수 있다.
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 ..