2019-01-01ãã1å¹´éã®è¨äºä¸è¦§
ã¯ããã« ãæ¥åã®æ´çãæé æ¸æ´åãä½å¶ä½ãã»ã»ããªã©ãèªååã®ä»¥åã«ãããã¨ã¨ãã¦ããèãã¾ãã ä»å¹´ã¯ãæè¡é¢ã§èªåå以åã«ã§ãããã¨ãã«æ°ä»ããããå¹´ã§ãããããã¯ãèªååãããè¨è¨ã»ç®¡ç対象ãæ¸ããã¨ãããã¨ã§ãã ãã³ã¨ãã2ã¤ã®è³â¦
ã¯ããã« Ansible 㯠GitHub ä¸ã§æ¥ã éçºãé²ãããã¦ãã¾ãã ãã°ãè¦æãªã©ã¯ Issue ã«ãããããå®è£ 㯠Pull Request ã«ããããã¾ãã Pull Request ã«ããããã追å ãä¿®æ£ã³ã¼ãã®ãã¡ãansible/ansible ãªãã¸ã㪠ã«ãã¼ã¸ããã¦ããªããã®ã¯ããâ¦
ã¯ããã« ãã¡ãã®è¨äºãæè¦ããç´¹ä»ããã¦ãã Python ã®ã³ã¼ãã®å¥è§£ãèãã¦ã¿ã¾ãã fugulog.hatenablog.com åä½ç¢ºèªç°å¢ Python 3.6.7, 3.7.5 ãã£ã¦ããã㨠èæ¯ã¯ããã§ã¯å²æãã¾ãããdocker ã¤ã¡ã¼ã¸åããªã¹ãåããã2ã¤ã®ãã¡ã¤ã« checklistâ¦
ã¯ããã« Cisco Certified DevNet Associateã®åå¼·ã®ä¸ç°ã§ä»¥ä¸ã®æ¸ç±ãèªã¿ã¾ããã Understanding and Using Application Programming Interfaces (APIs): Cisco DevNet Associate (DEVASC) 200-901 V1.0 Exam Guide Series (English Edition)ä½è :Muhammaâ¦
ã¯ããã« 2020/02/24 ã«å§ã¾ããCisco DevNet Associate (DEVASC 200-901) ã®åå¼·ãã¯ãããã 試é¨æ å ±ãªã³ã¯ã¾ã¨ã tekunabe.hatenablog.jp ä»å¾ã®ããã°ã§ããåå¼·éä¸ã®ãããã¯ãæ¸ãã¦ããããã¨æãã¾ãã å½é¢ã®å¦ç¿ã³ã³ãã³ã å ¬å¼ã®ã¬ã¤ãã¯ã2020â¦
ã¯ããã« Hackeyã¨ãããã«ã®ãã²ãã㨠HTTP ãããã¹ãæ©å¨ãããã¾ãã cerevo.com ãã®æ©å¨ã®ããä¸ã¤ã®æ©è½ã¨ãã¦ãå èµã®5è²ã® LED ãå ãããã¨ãããã®ãããã¾ãã HTTP GET ãå©ãã¦å ãããã®ã§ãcurl ã§ãä½ã§ãããã®ã§ããããã¾ãã¾æå ã«ãâ¦
ã¯ããã« Ansible ãå é¨ã§å©ç¨ãã¦ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ã® Jinja2 ã«ã¯ãæå®ããæåæ°ä»¥å ã«åãè©°ãã truncate ãã£ã«ã¿ã¼ãããã¾ãã Ansible ã® filter ã®ããã¥ã¡ã³ããã¼ã¸ ã«ã¯è¼ã£ã¦ããªãã®ã§ç¥ããªãã£ãã®ã§ãããJinja2 ã®ãªãã¡ã¬ã³ã¹â¦
ã¯ããã« Ansible ã§ã¯ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã¨ã㦠Jinja2 ãå©ç¨ãã¦ãã¾ãã Jinja2 æ¸å¼å ã§ãPython ã® str.format()ã®ãããªãã¨ãããæ¹æ³ã2ã¤ç´¹ä»ãã¾ãã æ¤è¨¼ç°å¢ Ansible 2.9.1 Python 3.6 æ¹æ³1: .format() ã¡ã½ãããå©ç¨ãã Python ã® str.foâ¦
ãã㯠Ansible Advent Calendar 2019 ã®22æ¥ç®ã®è¨äºã§ãã â ã¯ããã« Ansible ã¯å¹´ã«1ã2åã»ã©ãã¼ã¸ã§ã³ã¢ãããéãã¦ãã¾ããæ¯å大éã®ã¢ã¸ã¥ã¼ã«ã追å ãããããæ§ã ãªæ©è½è¿½å ãå¤æ´ããªããã¦ãã¾ãã å人çã«ã¯ã©ã®ãããªå¤åãããã®ãæ°ã«ãªâ¦
ã¯ããã« å æ¥éå¬ããããAnsibleããããä¼ ( ãµã¼ãç·¨ ) 2019.12 in æå¹ãã«ããªã¢ã¼ãã¡ã³ã¿ã¼ã¨ãã¦åå ããã¦ããã ãã¾ããã ãã®éãåå è ã®æ¹ãã以ä¸ã®ã質åãããã ãã¾ããã ã¢ã¸ã¥ã¼ã«ã®æ°ãå¤ããããããããã¨ã«é©ããã¢ã¸ã¥ã¼ã«ãæ¢ãâ¦
ãã㯠Ansible 3 Advent Calendar 2019 ã®21æ¥ç®ã®è¨äºã§ãã â ã¯ããã« NetBox ã ã¤ã³ãã³ããªã¼ã¨ãã¦å©ç¨ãã 以åã[Ansible] NetBox ã¢ã¸ã¥ã¼ã«ã§ Site ã Device ãç»é²ããï¼Collection ã¢ã¸ã¥ã¼ã«ç·¨ï¼ - ã¦ããªã¹ (tekunabe)ãã§ãAnsible ãã Nâ¦
ãã㯠Ansible 3 Advent Calendar 2019 ã®20æ¥ç®ã®è¨äºã§ãã ã¯ããã« ã¿ãªãã¾ãPlaybook ãæ¸ãã¦ä¸çºã§æå³éãæ£å¸¸ã«åãããã¨ã¯ã§ãã¾ãã§ããããï¼ ç§ã¯ãããããã§ãã¾ããã ä»å¹´ããããããããªã¨ããã§ã¤ã¾ã¥ãã¾ããããã®è¨äºã§ã¯ãå人çâ¦
Ansible ã®ã©ããã¼ã¢ã¸ã¥ã¼ã«ã表示ããPlaybook ã¤ããã¾ããã pic.twitter.com/X0fnAzFXoIâ ããã¡(yokochi) @ Ansibleå®è·µã¬ã¤ã 第3ç (@akira6592) 2019å¹´12æ19æ¥ â ã¯ããã« Ansible ã«ã¯ 3,000 ãè¶ ããã¢ã¸ã¥ã¼ã«ãæ¨æºã§å«ã¾ãã¦ãã¾ãã ããã¾â¦
ãã㯠ã¨ã¼ãã¼ã³ãã¥ãã±ã¼ã·ã§ã³ãº Advent Calendar 2019 ã®15æ¥ç®ã®è¨äºã§ãã â ã¯ããã« NetBox ã¨ã¯ãIPAMãã©ãã¯ãããã¤ã¹ç®¡çæ©è½ãæã£ãWeb UI ä»ãã®ãªã¼ãã³ã½ã¼ã¹ã®ã½ããã¦ã§ã¢ã§ãã Device 管çç»é¢ API ãåãã¦ãã¦ãAnsible ã® NetBoxâ¦
2020å¹´2æéå§ã® Cisco DevNet èªå®ãDevNet Associate (DEVASC 200-901)ãã®ãªã³ã¯ã¾ã¨ã
ã¯ããã« 2020/02/24 ã«ãCisco æè¡è èªå®è©¦é¨ã®å¤§ããªæ¹å®ãäºå®ããã¦ãã¾ãã CCNA ã1æ¬åããããããããªãä¸ä½è©¦é¨ãåããããããã«ãªã£ãããªã©ããªããªãã®å¤§æ¹è¨ã§ãã ãã®ä¸ã§ãç§ãä¸çªæ°ã«ãªã£ã¦ããã®ãããããã¯ã¼ã¯ããã°ã©ãããªãã£â¦
ãã㯠Ansible 3 Advent Calendar 2019 ã®6æ¥ç®ã®è¨äºã§ããï¼ããã®ã¼ãæç¨¿ï¼ â ã¯ããã« å½ã¢ããã³ãã«ã¬ã³ãã¼ã® 5æ¥ç®ã®è¨äºã¯ãæ¢åã® 0,1 ãæ¸ããã¦ãããã¡ã¤ã«ãå転ããã¦å¥ã®ãã¡ã¤ã«ãçæããã¨ããè¨äºã§ããã qiita.com ããããå¥è§£ãèâ¦
â ã¯ããã« 2019/12/10-11 ã«éå¬ããããDevNet Express for DNA [Tokyo] ã«åå ãã¦ãã¾ããã ãããã¯ã¼ã¯ããã°ã©ãããªãã£ããã¼ãã«ããããã³ãºãªã³ãå«ãã¤ã³ãã³ãã§ãã ãfor DNAãã¨ã¤ãã¦ããã®ã¯ãCisco DNA Center ã¨ãã製åãä¸å¿ã¨ããâ¦
ãã㯠Ansible 3 Advent Calendar 2019 ã®9æ¥ç®ã®è¨äºã§ãã â ã¯ããã« Ansible 2.9 ãã Network Resource Module ã¨ããæ°ããã¿ã¤ãã®ã¢ã¸ã¥ã¼ã«ãç¶ã ã¨è¿½å ããã¦ãã¾ãã config ãªãã·ã§ã³ã§è¨å®å 容ãæå®ããstate ã¨ãããªãã·ã§ã³ã§ï¼ç¨®é¡ã®æâ¦
ãã㯠Ansible 3 Advent Calendar 2019 ã®8æ¥ç®ã®è¨äºã§ãã â ã¯ããã« éçºä¸ã® Ansible 2.10 ã§ã¯ãJuniper Junos åãã®ã¹ã¿ãã£ãã¯ã«ã¼ãè¨å®ã¢ã¸ã¥ã¼ã« junos_static_routes ã¢ã¸ã¥ã¼ã« ï¼æ«å°¾ s ããï¼ã追å ããã¾ãã Ansible 2.9 ããç¶ã ã¨è¿½å â¦
ãã㯠Ansible 2 Advent Calendar 2019 ã®7æ¥ç®ã®è¨äºã§ãã ã¯ããã« Playbook 㯠YAML ã¨ãããã©ã¼ãããã§è¨è¿°ãã¾ããã¨ãã©ãããã¹ã«ãã£ã¦ YAML ã®ãã£ã¯ã·ã§ããªã®ãã¼ã®éè¤ãã¦æ¸ãã¦ãã¾ããã¨ããããã¨æãã¾ãã ããã¾ã§ã¯ãã¼ã®éè¤æã¯ãâ¦
ãã㯠Ansible 2 Advent Calendar 2019 ã®5æ¥ç®ã®è¨äºã§ãã ã¯ããã« Ansible ã«ã¯ãå¤ã«å¯¾ãã¦æ§ã ãªå¦çããããã£ã«ã¿ã¼ãããã¾ãã unique ãã£ã«ã¿ã¼ã¯ããªã¹ãå ã®è¦ç´ ã®éè¤ãæé¤ãã¦ã¦ãã¼ã¯ã«ãããã£ã«ã¿ã¼ã§ãã ç°¡åãªãµã³ãã«ã§ãç´¹ä»ãã¾â¦
ãã㯠ãããã¯ã¼ã¯èªåå Advent Calendar 2019 ã®4æ¥ç®ã®è¨äºã§ãã â ã¯ããã« ãããã¯ã¼ã¯èªåå Python ã©ã¤ãã©ãª netmiko ã¯ãCiscoãJuniperãArista ãªã©æ§ã ãªãããã¯ã¼ã¯OSã«å¯¾å¿ãã¦ãã¾ãã éçºç¶æ³ãçºãã¦ããã¨ãJuniper ScreenOS (SSG)â¦
ãã㯠Ansible 2 Advent Calendar 2019 ã®3æ¥ç®ã®è¨äºã§ãã â ã¯ããã« assert ã¢ã¸ã¥ã¼ã«ã® that ãªãã·ã§ã³ã§ >= ã <= ãªã©ãå©ç¨ãããã¨ã§ãæ°å¤ã®ç¯å²ããã§ãã¯ã§ãã¾ãã ãã®è¨äºã§ã¯ãç°¡åãªãµã³ãã«ããã¨ã«èª¬æãã¾ãã â ãè¦ä»¶1ã 1ã1000 â¦
â ã¯ããã« Ansible 2.9 ãã Ansible Collection ã¨ããæ°ããã³ã³ãã³ãé å¸å½¢å¼ãå§ã¾ãã¾ãããï¼Ansible 2.8ã§ã¯å®é¨çãµãã¼ãï¼ ãã¼ã«ã®ã»ãã«ããã¢ã¸ã¥ã¼ã«ããã©ã°ã¤ã³ãå«ãã¦é å¸ã§ããã®ãç¹å¾´ã§ãã Collection ã§ã¤ã³ã¹ãã¼ã«ãããã®ã¯ãAnâ¦
â ã¯ããã« Ansible ã«ã¯ãPlaybook å®è¡æã«äºãã©ã®ãããªå¤æ´ãããããããå®éã«å¤æ´ãå ãããã¨ãªããã§ãã¯ã§ãããcheck ã¢ã¼ã (Dry-run)ã¨ããæ©è½ãããã¾ãã ããã¾ã§ã¯ãé常å®è¡æã check ã¢ã¼ãå®è¡æããå®è¡ãã°ä¸ã¯ç¹ã«å¤ããã¯ããã¾â¦
â ã¯ããã« fact ã¨ããã°ããµã¼ãã¼ç³»ã¢ã¸ã¥ã¼ã«ã®å ´åã¯ãgather_facts: yesï¼ããã©ã«ãï¼ã§åéããã¾ãããããããã¯ã¼ã¯ã¢ã¸ã¥ã¼ã«ã®å ´åã¯äºæ ãç°ãªãã¾ããã å ·ä½çã«ã¯ãgather_facts: yes ã§ã¯ãAnsible ã³ã³ããã¼ã«ãã¼ãèªèº«ã® fact ãåéâ¦
â ã¯ããã« role ãæ§æããéãvars ãã£ã¬ã¯ããªé ä¸ã« main.yml ãä½æãã¦ãå¤æ°ãèªã¿è¾¼ã¾ãã¾ãã æ®éã«èããã¨ãvars/main.yml ã¨ãã1ã¤ã®ãã¡ã¤ã«ããèªã¿è¾¼ããªãããã§ãããè¤æ°ã®ãã¡ã¤ã«ã«åå²ãã¦ãããããã¨ãããããããã¾ããã å ¬å¼â¦
â ã¯ããã« ãã®ãã¤ã¼ãã®è©³ç´°ã§ãã ãã¡ããã¡ããããã¾ããPlaybook 㯠Play ãã¾ã¨ãããã®ãã¨æèããããã«ãªã£ã¦ããã - hosts ãã±ã£ã¨ã§ã¦ããããã«ãªãã¾ããã https://t.co/E6VX3oRPF8â ããã¡(yokochi) @ Ansibleå®è·µã¬ã¤ã 第3ç (@akiraâ¦
ã¯ããã« Ansible Tower / AWX ã§ç»é¢ããè¨å®ãç¶ãã¦ããã¨ãèªååããããªãã®ã§ã¯ãªãã§ããããã ããããæ°ãã«è¨å®ããåã¯ãAnsible 㧠Ansible Tower / AWX ã®åãªãã¸ã§ã¯ãã管çã§ãã tower_* ã¢ã¸ã¥ã¼ã«ãå©ç¨ããã®ãæãã¨æãã¾ãã ã§ã¯â¦
åé¡ çªç¶ã§ãããåé¡ã§ãã 以ä¸ã®ããã«ã¿ã°ã®ã¤ãã Playbookãrole ãããã¨ãã¾ãã tag_playbook.yml - hosts: localhost gather_facts: no roles: - role: testrole tags: - tag_parent roles/testrole/tasks/main.yml - name: task1 debug: msg: "tâ¦