본문 바로가기

IT study15

Selenium을 이용한 자동화 import sys import os import time from selenium import webdriver from selenium.webdriver.common.by import By # 리스트 포함하는 element를 다루기 위한 선언 #from selenium.webdriver.support.select import Select options = webdriver.ChromeOptions() options.add_experimental_option('excludeSwitches',['enable-logging']) #크롬드라이버 경로 driver = webdriver.Chrome(r) #SRT 로그인페이지 #driver.get('https://etk.srail.kr/cmc/01/selectL.. 2023. 1. 13.
07. playbook 형식 cursorcolumn //줄의 간격을 확인 [playbook 작성 실습] Control node 에서 manager 계정으로 작업 sample 폴더작성 sample 디렉토리안에서 작업 대상 - managed nodes 1. firewall,httpd 패키지가 설치되어 있어야한다. 2. firewalld service가 활성화 되어 있어야 한다. 3. httpd 가 활성화 되어 있어야 한다. 4. httpd가 활성화 되어 있어야한다. 5. httpd 포트가 방화벽 설정에 영구적으로 허용 되어 있어야한다. server a server b server c 가 managed node고 server1이 control node --- - name: enabled network service hosts: all t.. 2022. 12. 10.
06. AWX awx 패키지 설치 # yum install epel-release # yum install git gettext ansible docker nodejs npm gcc-c++ bzip2 -y # yum install python-pip -y # yum install python-docker-py -y Docker 실행 # systemctl start docker # systemctl enable docker AWX Clone 및 설정 # git clone https://github.com/ansible/awx.git # cd awx/installer/ # vim inventory postgres_data_dir=/opt/awxdb docker_compose_dir=/opt/awxcompose # mkdi.. 2022. 12. 10.
05. ansible addhook ansible servera.example.com -a 'yum -y erase telnet-server' //애드훅명령 레지스터 뒤에 정의한 변수만.rc 는 리턴코드를 정의해준것 2022. 12. 10.