공부합시다!/Ansible
-
-
Ansible을 활용한 vCenter 구성 자동화공부합시다!/Ansible 2023. 11. 20. 17:04
우선 Locky Linux 9을 vCenter가 존재하는 host에 설치 후 아래 작업을 진행합니다. 1. 패키지 설치 2. pyvmomi 패키지 다운로드 3. 압축 및 Archive 해제 4. pyvmomi 설치 5. ansible 설치 6. community.vmware Collection 설치 7. Playbook 실행 후 오류 확인 # yum install -y tar wget epel-release python-pip # wget https://files.pythonhosted.org/packages/ae/a4/70716f2fb132b105bc6cb4d4399491364582ab5690c87f19d6a9e4096037/pyvmomi-8.0.2.0.1.tar.gz # tar xvfz pyvmomi..
-
Ansible: apache + nginx + mysql + haproxy + dns공부합시다!/Ansible 2023. 9. 5. 10:28
종합 실습적 성격을 띠는 ansible 구성입니다. 1. node1 1.1. webhttp.yml --- - name: wordpress download, httpd install, config file fix hosts: web gather_facts: false ignore_errors: true tasks: - name: wget, tar package install yum: name: "{{ item }}" state: present loop: - wget - tar - php - php-cli - php-common - php-gd - php-mysqlnd - php-curl - php-opcache - name: httpd install dnf: name: httpd state: install..
-
Ansible: HAPROXY + Apache + Wordpress공부합시다!/Ansible 2023. 6. 14. 17:41
Haproxy와 apache web server를 동일 node에 구성하는 예제입니다. haproxy는 80 port를 web server는 8080 port를 사용합니다. 1. code --- - name: wordpress download & install, php7.4 install hosts: was1 tasks: - name: wget, httpd, php repository, php7.4 repo install yum: name: "{{ item }}" state: present loop: - wget - httpd - yum-utils - epel-release - http://rpms.remirepo.net/enterprise/remi-release-7.rpm - haproxy - name..
-
Ansible: nginx + wordpress공부합시다!/Ansible 2023. 6. 14. 17:31
nginx + wordpress 1. code --- - name: nginx & wordpress & php-fpm hosts: nginx tasks: - name: package install yum: name: - wget - yum-utils - epel-release state: present ignore_errors: yes - name: nginx package install yum: name: nginx state: present ignore_errors: yes - name: url download wordpress get_url: url: https://ko.wordpress.org/wordpress-5.8.6-ko_KR.tar.gz dest: ./ - name: archive & un..
-