2020-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ããã« AWS ã® VPC å¨ããå¦ç¿ä¸ã§ãã ãã®ä¸ã§ãã¤ã³ã¿ã¼ãããã²ã¼ãã¦ã§ã¤ãNAT ã²ã¼ãã¦ã§ã¤ããããªãã¯IP ã®æç¡ã¨ãã¤ã³ã¿ãããããEC2 ã¤ã³ã¹ã¿ã³ã¹ã¸ã¤ã³ãã¦ã³ããã¤ã³ã¿ã¼ãããã¸ã®ã¢ã¦ããã¦ã³ãéä¿¡ã®é¢ä¿ãå°ã ãããããæãã¾ããã èªâ¦
ã¯ããã« å æ¥ãAWS CloudShell ãå©ç¨ã§ããããã«ãªãã¾ããã aws.amazon.com www.publickey1.jp ã¨ã¦ãæ°è»½ã«ä½¿ãã¦è¯ããªã¨æã£ãã®ã§ Ansible ãã¤ã³ã¹ãã¼ã«ãã¦ãAWS ä¸ã®ãªã½ã¼ã¹ãæä½ã§ããã使ããã試ãã¦ã¿ã¾ããã Playbook ã®å®è¡ãad-hoc â¦
ã¯ããã« NetBox ã§ã¯ãããã¤ã¹ãIPã¢ãã¬ã¹ãªã©æ§ã ãªãªãã¸ã§ã¯ãã«ã¿ã°ãä»ãããã¨ãã§ãã¾ãã NetBox 2.8 ã¾ã§ã¯ãã¿ã°ã¯äºãå®ç¾©ã¯ä¸è¦ã ã£ãã®ã§ãããNetBox 2.9 ããäºåã®å®ç¾©ãå¿ è¦ã«ãªãã¾ãããéã«ããã¨æªå®ç¾©ã®ã¿ã°ãé©ç¨ã§ãã¾ããã ãâ¦
ã¯ããã« æè¿ãnetbox-docker ã® README.md ãè¦ã¦ç¥ã£ãã®ã§ãããdocker-compose.yml ã®å 容ãä¸æ¸ããã docker-compose.override.yml ã¨ãããã¡ã¤ã«ãããããã§ãã docker-compose.yml ã¯ãã®ã¾ã¾ã®ããã¦ãããdocker-compose.override.yml ã§ã«ã¹â¦
ã¯ããã« git ã®è¨å®ãè¡ã git config ã³ãã³ãã«ç¸å½ãã git_config ã¢ã¸ã¥ã¼ã«ãããã¾ãã ã¨ãããããæè¿åå¨ãç¥ãã¾ãããç°¡åãªä¾ã§ãããã¾ã¨ãã¾ãã åä½ç°å¢ ansible 2.9.14 Playbook git config --global user.email [email protected] gitâ¦
ã¯ããã« ansbile-galaxy ã³ãã³ã㯠role ã collection ã®ã¤ã³ã¹ãã¼ã«ãªã©ãè¡ãã¾ãã ããã©ã«ãã§ã¯ãAnsible Galaxyãåç §ãã¾ãã è¨å®ãå¤æ´ãããã¨ã§ãAutomation Hub (ã¬ããããã社æä¾ã®é å¸ãµã¼ãã¹) ã«å¤æ´ã§ãã¾ãã ansible.tower collecâ¦
ã¯ããã« 2020/12/26 ã«ãYouTube Live ã§ãã¤ã¾ãã Ansible ãPart24ã2020å¹´ã®ãµãããããã¨ããé ä¿¡ããã¾ããã tekunabe.connpass.com æ®æ®µã¯å®éã«ä½æ¥ããªããï¼ã¨ãã«ã¯ï¼ã¨ã©ã¼ã¨æ¦ã£ã¦é²ããã·ãªã¼ãºã§ããããä»åã¯2020å¹´æå¾ã¨ãããã¨ã§ãä»â¦
ã¯ããã« ãããã¯ã¼ã¯ã¢ã¸ã¥ã¼ã«ãä¸å¿ã«ä½¿ã£ã¦ããã¨ãã¿ã¼ã²ãããã¼ãã§ã¯ãªãã³ã³ããã¼ã«ãã¼ãï¼Ansibleå®è¡ãµã¼ãã¼ï¼ã® Python ãå©ç¨ãããã¨ãå¤ãã§ãã ããã¾ã§å人ã®ä¸»è¦³ã§ãããAnsible èªä½ã®å®è¡ç°å¢ã¨ãã¦ã® Python (ansible_playbook_pyâ¦
ã¯ããã« ã·ã¹ã³ã®ä»®æ³ã©ãç°å¢ CMLã§ãã¼ããããã¤ãé ç½®ãã¦ããã¨ãè¤æ°ãã¼ãã¾ã¨ãã¦èµ·åãåæ¢ãããããã¨ããããã¾ãã ã©ãå ¨ä½ã§ããããããã¯ããã§æä½æ¹æ³ãããã®ã§ãããããã¨ããã¨ããã ããã¨ããæå®ããã«ã¯å¥ã®æä½ãå¿ è¦ã§ãã ç§â¦
ã¯ããã« ternary ãã£ã«ã¿ã¼ã¯ã対象ã®å¤ã true ã false ãã«å¿ãã¦å¥ã®å¤ãè¿ãã¾ãã Jinja2 ã® if ããããå¿ è¦ã¯ããã¾ããã ãã®è¨äºã§ã¯ãç°¡åãªãµã³ãã«ã§ãç´¹ä»ãã¾ãã ç°å¢ ansible 2.9.14 true ã false ã ãã®2å¤ã§åããæ¹æ³ã§ãã Playboâ¦
ã¯ããã« group_by ã¢ã¸ã¥ã¼ã«ã¯ãPlaybook å®è¡ä¸ã«åçã«ã°ã«ã¼ãåã§ãã¾ãã ç¨éã¯è²ã èãããã¾ããããã®è¨äºã§ã¯ãè¤æ°å°ã® Cisco IOS æ©å¨ã®ãã¼ã¸ã§ã³ãåéããä¸ã§ãç¹å®ã®ãã¼ã¸ã§ã³é£²ã¿ã対象ã¨ãã Play ãå®è¡ããä¾ããç´¹ä»ãã¾ãã ç°å¢ â¦
ã¯ããã« Cisco ã®ä»®æ³ã©ãç°å¢ã® CML ã§ããã2020å¹´11æ ã« 2.1.1 ããªãªã¼ã¹ããã¦ãã¾ããã æ°æ©è½è¿½å ã¯ãªãããã°ãã£ãã¯ã¹ã§ãã CML 2.1.1 Release Notes ä¸çªæ°ã«ãªã£ãã®ã¯ä»¥ä¸ã®ç¹ã§ãã The refplat-20201020-fcs.iso released with CML 2.1.0â¦
ããã¯ãAnsible Advent Calendar 2020 (Adventarç) ã® 25æ¥ç®ã®è¨äºã§ãã ã¯ããã« ã¿ã¼ã²ãããã¼ãã«ãã°ã¤ã³ããã®ã§ã¯ãªããAnsible ã³ã³ããã¼ã«ãã¼ããããªã«ãå¦çï¼APIãå©ããªã©ï¼ãããå ´åãconnection: local ã delegate_to ããããã¦æå®â¦
ããã¯ãAnsible Advent Calendar 2020 (Adventarç) ã® 23æ¥ç®ã®è¨äºã§ãã ã¯ããã« YAML ã®ãããã³ã°ï¼ãã£ã¯ã·ã§ããªï¼ã®æ¸ãæ¹ã¯ã大ããåãã¦ããããã¯ã¹ã¿ã¤ã«ã¨ããã¼ã¹ã¿ã¤ã«ã® 2ã¤ããã¾ãã ãããã¯ã¹ã¿ã¤ã«ã§æ¸ãã±ã¼ã¹ã§æ¸ããã¨ãå¤ããã¨â¦
ããã¯ãAnsible Advent Calendar 2020 (Adventarç) ã® 22æ¥ç®ã®è¨äºã§ãã ã¯ããã« pip install ansible 㧠Ansible 2.10 ãã¤ã³ã¹ãã¼ã«ããã¨ã2.9 ã¾ã§æ¨æºã§å«ã¾ããã¢ã¸ã¥ã¼ã«ã«æ¦ãç¸å½ãã Collection ãã»ããã§ã¤ã³ã¹ãã¼ã«ããã¾ãã Python ã®â¦
ãã㯠Ansible Advent Calendar 2020 (Qiitaç) ã® 21æ¥ç®ã®è¨äºã§ãã â ã¯ããã« Ansible ã«ã¯ callback plugin ã¨ããä»çµã¿ããããçµæåºåã®å½¢å¼ãå¤æ´ã§ãã¾ãã JSON Callback Plugin ããããPlaybook ã®å®è¡çµæã JSON ã§å¾ã¦ãjq ãªã©ã¨çµã¿åâ¦
ããã¯ãAnsible Advent Calendar 2020 (Adventarç) ã® 21æ¥ç®ã®è¨äºã§ãã ã¯ããã« Ansible ã«ã¯ãping ã¢ã¸ã¥ã¼ã«ã¨ããæ¥ç¶ç¢ºèªã¢ã¸ã¥ã¼ã«ãããã¾ãã ã³ã³ããã¼ã«ãã¼ãããã¿ã¼ã²ãããã¼ãã¸ã® SSH æ¥ç¶ + Python å®è¡ã¾ã§ã確èªãã¾ãï¼ICMPã§ã¯â¦
ããã¯ãAnsible Advent Calendar 2020(Adventorç)ã®20æ¥ç®ã®è¨äºã§ãã ã¯ããã« å°ãã¿ã¤ãã«ããããã«ããããããã¾ããããä¾ãã°ããã§ãã abc ã¨ããæååã 3åç¹°ãè¿ã abcabcabc ã«ãã [1, 2, 3] ã¨ãããªã¹ãã 3åç¹°ãè¿ã [1, 2, 3, 1, 2,â¦
ã¯ããã« 2020/12/19 ã«ãYouTube Live ã§ãã¤ã¾ãã Ansible ãPart23ãAWX ãã³ãã³ããªã©ã§æä½ãããã¨ããé ä¿¡ããã¾ããã å®éã«ä½æ¥ããªããï¼ã¨ãã«ã¯ï¼ã¨ã©ã¼ã¨æ¦ã£ã¦é²ããã·ãªã¼ãºã§ãã ä»åã¯ãAWX ãç»é¢ä»¥å¤ã§æä½ããæ¹æ³ãæ±ããã¾ããã â¦
ããã¯ãAnsible Advent Calendar 2020 (Qiitaç)ã®19æ¥ç®ã®è¨äºã§ãã ã¯ããã« Ansible ã«ã¯ Cisco ACI ã®æä½ã«ã対å¿ãã¦ãã¦ãã¢ã¸ã¥ã¼ã«ãå¤æ°ããã¾ãã åè Cisco ACI Guide aci_* ã¢ã¸ã¥ã¼ã«ä¸è¦§ å é¨çã«ã¯ APIC ã® API ãå©ç¨ãã¾ãããhttpapi â¦
ãã㯠Ansible Advent Calendar 2020 (Adventarç) ã® 14æ¥ç®ã®è¨äºã§ãã ã¯ããã« ç¾å¨ãã³ãã¥ããã£çã¨ãã¦ã® ææ°å®å®ç㯠Ansible 2.10 ç³»ã§ãã ãã¨ãã¨ã®ãã¼ããããã§ã¯ãAnsible 2.10 ç³» ã®æ¬¡ã¯ Ansible 2.11 ç³»ã§ãããã§ããå æã2.10 ç³»ã®â¦
ã¯ããã« 2020/12/13 ã«ãYouTube Live ã§ãã¤ã¾ãã Ansible ãPart22ãAWX 16.0.0 ã試ããã¨ããé ä¿¡ããã¾ããã å®éã«ä½æ¥ããªããï¼ã¨ãã«ã¯ï¼ã¨ã©ã¼ã¨æ¦ã£ã¦é²ããã·ãªã¼ãºã§ãã tekunabe.connpass.com ä»åã¯ãå æ¥ ãªãªã¼ã¹ããã AWX 16.0.0 ãâ¦
ã¯ããã« 2020/12/12 ã«ãYouTube Live ã§ãã¤ã¾ãã Ansible ãPart21ãansible.utils collection ã試ããã¨ããé ä¿¡ããã¾ããã å®éã«ä½æ¥ããªããï¼ã¨ãã«ã¯ï¼ã¨ã©ã¼ã¨æ¦ã£ã¦é²ããã·ãªã¼ãºã§ãã tekunabe.connpass.com ä»åã¯ãå æ¥ 1.0.0 ã«ãªã£ãâ¦
ãã£ããã ã¯ããã« AWX 16.0.0 ããªãªã¼ã¹ããã¾ãããCHANGELOG ã¯ãã¡ã 以åãããui_next ã¨ããã³ã¼ããã¼ã ï¼ã§ UI ã®å·æ°ãé²ãããã¦ãã¾ããããAWX 16.0.0 ã§ã¤ãã«ãªãªã¼ã¹ãããããã§ãã æ©é触ã£ã¦ã¿ã¦ãAWX 15.0.0 ã¨ã®æ¯è¼ã®è¦³ç¹ã§ãã¤ã¼â¦
ãã㯠Ansible Advent Calendar 2020 (Adventarç) ã® 8æ¥ç®ã®è¨äºã§ãã ã¯ããã« Ansible ã§ã¯ã«ã¼ãå¦çããéã«ãwith_sequence ã range ã«ãã£ã¦ãé£çªãçæã§ãã¾ãã ãã¨ãã°ãuser1ãuser2....user99 ã®ããã«ã¦ã¼ã¶ã¼ãä½æãããã¨ãã«ä¾¿å©ã§â¦
ã¯ããã« NetBox 㯠OSS ã® DCIM/IPAM ã§ããã¹ã¤ãããã«ã¼ã¿ã¼ãªã©ã®ããã¤ã¹æ å ±ãå®ç¾©ããããIP ã¢ãã¬ã¹ã®å²å½ç¶æ ã管çãããã§ãã¾ãã ããã¤ã¹ã®å®ç¾©ã工夫ãããã¨ããããããã«ã模ãããã®ãä½æã§ãã¾ãã ãã¤ã³ãã¯ããããããã«ã®ã¤ã³ã¿â¦
ã¯ããã« ç¾å¨ãPython ããã±ã¼ã¸ã¨ãã¦ã® Ansible ã®ææ°ç㯠Ansible 2.10 ç³»ã§ãã ãã®ãããåã« pip install ansible ãå®è¡ãã㨠2.10 ç³»ãã¤ã³ã¹ãã¼ã«ããã¾ãã ãããã2.10 ã§ã¯å¤ãã®ã¢ã¸ã¥ã¼ã«ã Collection ã¨ãã¦å¥ãªãã¸ããªã®ç®¡çã¨ãªã£â¦