일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ELK
- module
- EKS
- tcp
- 8.0
- crawling
- airflow
- DB
- 데이터 분석
- EC2
- apt
- 시스템자동화
- MySQL
- AWS
- Automation
- kibana
- ubuntu
- API
- GIT
- powershell
- GCP
- zabbix
- ansible
- 자동화
- 5.0
- Linux
- python
- elasticsearch
- sso
- Selenium
- Today
- Total
목록시스템자동화 (3)
Oops - IT
1. Command, System 명령어 # 파일 체크 - name: Check /etc/zabbix/zabbix_agent.d/server.conf file stat: path: /etc/zabbix/zabbix_agent.d/server.conf register: server_conf_stat_1 # 파일 수정 - name: Amend /etc/zabbix/zabbix_agent.d/server.conf file shell: sed -i 's/ServerActive=.*/ServerActive=10.10.10.1/g' /etc/zabbix/zabbix_agent.conf.d/server.conf when: server_conf_stat_1.stat.exist == True # 스크립트 실행 - nam..

** OS 환경: ubuntu 16.04 1. Task 생성 : 지난 Post에서 ansible-galaxy 명령어를 통해 role을 생성했다면 /etc/ansible/roles/[role 이름]/tasks/main.yml 파일이 생성되었을 겁니다. : 해당 파일에 Ansible에서 관리하는 실제 Host들에서 동작할 작업을 명시 해줍니다. : 첫번째 동작 - /tmp/test.sh 파일 유무 확인 : 두번째 동작 - /tmp/test.sh 파일이 존재하지 않을 경우 파일 생성 #vim /etc/ansible/roles/update-zabbix/tasks/main.yml - name: Check /tmp/test.sh stat: path: /tmp/test.sh register: script_check ..

** OS 환경: ubuntu 16.04 1. Ansible Repository 추가 # apt-add-repository ppa:ansible/ansible 2. APT Update 실행 # apt-update 3. Ansible 패키지 설치 : 의존성 파일들이 설치되며 설치가 진행 된다. # apt-get install -y ansible 4. 설치 확인 # ansible --version 5. Hosts 파일에 관리할 서버 추가 : Ansible을 통해서 관리를 할 서버를 명시하면 Inventory 파일이라고도 한다. : Ansible 패키지 설치 시 자동적으로 /etc/ansible 경로 밑에 파일이 생성이 된다. * 계정 정보나, 보안 측면의 관리가 필요한 내용이 hosts에 들어가는 경우 : ..