본문 바로가기 메뉴 바로가기

fendys

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

fendys

검색하기 폼
  • ALL fendys write (151)
    • AWS (21)
    • linux (93)
    • security (0)
    • ansible (13)
    • monitoring (2)
    • VM (0)
    • DB (4)
    • windows (4)
    • it (12)
    • 가상화폐 (0)
  • 방명록

ansible (13)
cisco ansible config

nxis, ios 구분을 인벤토리에서 구분하여 when조건으로 실행 한다. hosts - inventory [network:children] nxos ios [nxos] nxos01 ansible_host=10.60.50.13 [nxos:vars] ansible_connection=network_cli ansible_network_os=nxos ansible_user=fendys ansible_password=password1! [ios] ios01 ansible_host=10.6.99.176 ios01 ansible_host=10.3.99.145 [ios:vars] ansible_connection=network_cli ansible_network_os=ios ansible_user=fendys ans..

ansible 2024. 4. 5. 20:59
ansible remote shell

스크립트 실행시 상대 경로의 파일을 못찾을때는 chdir: prefix 설정해주면 상대 경로의 원격지 스크립트가 정삭적으로 수행 된다. --- - name: mkdir solid_step client direct shell: 'mkdir -p /fendys/solied_step' ################################################################################################################################################################ - name: Get solid_step client file shell: 'wget -P /fendys/solied_step --no-chec..

ansible 2023. 8. 31. 20:01
cisco switch config backup

test model : cisco 2960 L series hosts - inventory ## Host 그룹 및 host 지정 ## []에 그룹명을 지정해 주고 하위에 hostname 및 host ip 정보등을 입력해 주면 그룹에 host가 등록이 된다. [cisco] BIDC-cisco-2960-L-01 ansible_host=192.168.0.46 ## 그룹에 대한 환경 변수 등록. ## [groupname:vars]형식으로 작성 [cisco:vars] ansible_network_os=ios ###-> network OS type 정의 ansible_connection=network_cli ###-> network OS cli 불러오기 ansible_become=yes ###-> enable 활성..

ansible 2022. 2. 28. 20:38
install ansible on centos 7

install [root@reni-ansible ~]#yum install -y epel-release . . . [root@reni-ansible ~]#yum install -y ansible . . . version chetck [root@reni-ansible ~]# ansible --version ansible 2.9.25 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/..

ansible 2021. 10. 26. 16:27
ansible 간단 명령어

ping 모든 hosts 그룹에 ping 테스트 ansible hosts -m ping command 모든 hosts 그룹에 ls -al 명령어 수행 ansible hosts -m command -a "ls -al" 파일전송 put Ansible 서버의 example.txt 파일을 모든 hosts에 test.txt 파일명으로 업로드 ansible hosts -m copy -a "src=~/example.txt dest=~/test.txt" 파일전공get 모든 hosts의 test.txt 파일을 Ansible 서버의 example 디렉토리 하위에 다운로드 ansible hosts -m fetch -a "src=~/test.txt dest=~/example"

ansible 2021. 8. 18. 21:07
ansible key copy

ansible 서버에서 아래 커맨드로 키를 카피한다. ssh-copy-id cpsible@IP 호스트 서버의 하드웨어 및 시스템 정보를 확인 한다. ansible hosts -m setup -> Ansible Facts

ansible 2021. 8. 5. 11:47
[ansible] file 내용 변경하기

파일 내용 수정하는 playbook입니다. 컨피그 등의 수정이 필요할 시 용의 합니다 --- . - hosts: all tasks: - name: editfle modify line replace: path: /tmp/file regexp: "fendys" replace: "#fendys" [root@grafana playbook]#

ansible 2020. 2. 22. 22:27
[Ansible] ansible /etc/sudoers line 추가하기

엔서블 사용할 전용 유저를 sudoers에 nopasswd유저로 등록 하면 "become: true"를 사용하면 root로 실행이 불가능 할 시에 일반 유저를 사용 주체로 만들고 sudo를 사용하게 하면 일반유저로도 엔서블을 이용한 제어가 가능하다. --- - hosts: all become: true tasks: - name: ansible user nopassword sudo set lineinfile: path: /etc/sudoers line: "fendys ALL=(ALL) NOPASSWD: ALL" state: present backup: yes # check_mode: yes -> 체크 모드는 확인만 하고 적용은 하지 않는다 * hostallow 추가 내역 --- - name: add hos..

ansible 2020. 2. 21. 23:56
이전 1 2 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • [여행] warmfree
  • [재미] wowns
TAG
  • cisco ansible
  • dl20 centos7
  • 특정 문구 치환
  • ipmi
  • ansible network
  • nutanix rac
  • 특정 라인삭제
  • ios ansible
  • chrony
  • vm rac
  • shell connmad log
  • cgroup
  • 윈도우 cmd 계정 관리
  • windows.old 강제삭제
  • oracle linux8 kernel
  • nxos ansible
  • ILO
  • ISCSI 볼륨 RAC
  • centos7 ntp
  • kernel 변경
  • dl20 g9 centos7 설치
  • DL20 GEN9 장비에 CentOS 7
  • cmd로 계정 생성
  • ansible ios
  • dl20
  • 리눅스 커맨드 로그남기기
  • cmd로 윈도우 계정 관리
  • linux command log
  • 윈도우서버 계정 관려
  • CentOS 7 GUI
more
«   2025/05   »
일 월 화 수 목 금 토
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 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바