Ansible 모쿠모쿠회 2019.05(네트워크편)
6108 단어 AnsibleAnsibleTower
※에피씨에 갈 때는 챠리로 가고 있습니다ww
진짜 찰리로 왔다.

사모쿠 모쿠 용 콘텐츠는 여기입니다.
네트워크 편이라고 하는 것이었습니다만, Tower를 해 보고 싶다고 이쪽의 내용에 임하기로 했습니다.
htps : // 기주 b. 코 m / 네토 ぉ rk 아우토 마치 온 / ぃ ン ぃ ght / b ぉ b / 뭐 r / 에어 r 시세 s / 안시 b ぇ _ ぇ r / 레아 D 메. md
Exercise 1 - Ansible Tower 설치
Exercise 1은 Tower 설치이지만 이미 설치되어 있으므로 여기를 이용합니다.

Exercise 2 - Ansible Tower 구성
로그인하면 라이센스가 필요하므로 workshop 전용 license를 요청합니다.
입력한 메일에 라이센스 파일이 보내지므로 그것을 선택하고 보내기를 누릅니다.
그러면 대시보드에 로그인할 수 있었습니다.

자격 증명을 만들고 저장합니다.

프로젝트를 만들고 저장합니다.

인벤토리를 만들고 저장합니다.

tower-manage에서 기존 인벤토리 파일을 Tower로 가져옵니다. 여기서 실수가 발생했습니다 ...! !
네트워크 용 환경에서 서버 편의 내용을 해 버렸다는 것을 깨닫는다


그대로 폴더가 없었습니다 ...
반대로 네트워크 편의 내용을 Tower에서 실행해 보려고 생각하고 다시 인벤토리 가져 오기
$ sudo tower-manage inventory_import --source=/home/student32/networking-workshop/lab_inventory/hosts --inventory-name="Ansible Workshop Inventory"
시스코 가상 라우터를 가져왔습니다.

프로젝트 소스를 네트워크로 수정
htps : // 기주 b. 코 m / 네토 rk 아우토 마치 온 / ぃ ん k ぃ

Exercise 3 - Creating and Running a Job Template
작업 템플릿을 만들고 실행해보십시오 (라우터에)

음, 미안해.
키의 Permission Denied에서 오류

Playbook 자체는 성공하고 있습니다만, 에러 해결까지 이르지 않고. .
이번에 시간이 끊어졌습니다.
[student32@ansible exercises]$ ansible-playbook -i ../lab_inventory/hosts 1-1-first-playbook/gather_ios_data.yml
PLAY [GATHER INFORMATION FROM ROUTERS] ******************************************************************************************
TASK [GATHER ROUTER FACTS] ******************************************************************************************************
ok: [rtr1]
ok: [rtr3]
ok: [rtr2]
ok: [rtr4]
TASK [DISPLAY VERSION] **********************************************************************************************************
ok: [rtr1] =>
msg: 'The IOS version is: 16.10.01b'
ok: [rtr4] =>
msg: 'The IOS version is: 16.10.01b'
ok: [rtr2] =>
msg: 'The IOS version is: 16.10.01b'
ok: [rtr3] =>
msg: 'The IOS version is: 16.10.01b'
TASK [DISPLAY SERIAL NUMBER] ****************************************************************************************************
ok: [rtr4] =>
msg: The serial number is:9AGZQFFTWL9
ok: [rtr3] =>
msg: The serial number is:91ETN2PK63W
ok: [rtr2] =>
msg: The serial number is:966XD8XZS47
ok: [rtr1] =>
msg: The serial number is:9ZOOBNM1AGN
PLAY RECAP **********************************************************************************************************************
rtr1 : ok=3 changed=0 unreachable=0 failed=0
rtr2 : ok=3 changed=0 unreachable=0 failed=0
rtr3 : ok=3 changed=0 unreachable=0 failed=0
rtr4 : ok=3 changed=0 unreachable=0 failed=0
요약
회장이나 핸즈온 환경의 준비, 언제나 감사합니다-


이번 환경 미스라고 버렸으므로 w, 계속 집에서 해 가고 & 모쿠모쿠회 참가하고 싶습니다~

Reference
이 문제에 관하여(Ansible 모쿠모쿠회 2019.05(네트워크편)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/sat0ken/items/a7e5f8a92c9bdf74be46텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)