2018-08-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« æ¤è¨¼ç°å¢ã§ãios_command ã¢ã¸ã¥ã¼ã«ããios_config ã¢ã¸ã¥ã¼ã«ãå©ç¨ãã Playbook å®è¡æã«ã以ä¸ã®ãããªã¨ã©ã¼ã¡ãã»ã¼ã¸ã«ééãã¾ããã fatal: [172.16.0.2]: FAILED! => {"msg": "unable to set terminal parameters"} èªåã調ã¹ãæ¹æ³â¦
ã¯ããã« 2018/08/18 ã«éå¬ããããã«ã¤ã¼ã³ã»ã¸ã£ã¼ãã¼ã»ã«ã³ãã¡ã¬ã³ã¹ã®ç»å£è ã®çæ§è³æããç§ãè¦ã¤ããç¯å²ã§ã¾ã¨ãã¾ããç»å£è ã®ã¿ãªãã¾ãããã¨ããããã¾ããã ããä»ã«ãããã¾ãããã @akira6592 ã¾ã§æãã¦ããããã¨å©ããã¾ããæ´æ°ããâ¦
â ã¯ããã« ç¾å¨éçºä¸ã® Ansible 2.7 (develãã©ã³ã) ã§ããããã¯ã¼ã¯æ©å¨ã¸ã® è¨å®ç³» ã³ãã³ããæå ¥ããã¢ã¸ã¥ã¼ã« cli_config ãç»å ´ãã¾ããã ãªããåãã Ansible 2.7 ã§éçºä¸ã® åç §ç³» ã³ãã³ããå®è¡ããã¢ã¸ã¥ã¼ã« cli_command ã«ã¤ãã¦ã¯éå»â¦
Ansible ã«ã¯ ping ã¢ã¸ã¥ã¼ã«ã net_ping ã¢ã¸ã¥ã¼ã«ãªã©ãã¢ã¸ã¥ã¼ã«åã« ping ãå«ã¾ãããã®ãããã¤ãããã¾ãã ååã¯ä¼¼ã¦ãã¾ãããã©ãããã©ãã¸ã® ping ãªã®ããä½ã®ãããã³ã«ã使ãã®ãããªã©ã®ç¹ã§æ§è³ªãç°ãªãã¾ãã ä¾ãã°ã å ¬å¼ããã¥ã¡ã³â¦
ï¼ãã®ãã¤ã¼ãã®ããã°çã§ãï¼ ã©ãã§èãããè¦ãã¦ãªãã®ã§ãããAnsible ã® Playbook ã®ã¿ã¹ã¯ã§ ãwhen ã«ããæ¡ä»¶ãã¤ããã¨ããã¿ã¹ã¯ã®æå¾ã«æå®ããã®ãéåæããããããã°ã©ã ã® if åã ã¨é ã«ã¤ãããããã¨ããæè¦ããã£ã¦ãwhen ã¯ã©ãã§â¦
â ã¯ããã« Ansible ã«ã¯ junos_facts ã¨ãã Juniper Junos ã®æ©å¨ã®ãã¡ã¯ããåéããã¢ã¸ã¥ã¼ã«ãããã¾ãã é常ã§ããã°ã ansible_net_version ã¾ãã¯ã ansible_facts.net_version ã¨ããå¤æ°ã§ãJunos ã®ãã¼ã¸ã§ã³ãåå¾ã§ããã®ã§ãããï¼ãããâ¦
â ã¯ããã« Ansible ã®èª¿ã¹ç©ããã¦ãã¦ãã¢ã¸ã¥ã¼ã«ã®èª¬æãã¼ã¸ãªã©ãè¦ãã¨ãã¯ããã®ããã¥ã¡ã³ãã®å¯¾å¿ãã¼ã¸ã§ã³ãæ°ã«ããããã«ãã¦ãã¾ãã 使ã£ã¦ãã Ansible ãã¼ã¸ã§ã³ã§ãã®ã¢ã¸ã¥ã¼ã«ã使ãããã©ããããªã©ã ãã®è¨äºã§ã¯ã対å¿ãã¼ã¸ã§ã³â¦
â ã¯ããã« Ansible 2.6 㧠SCP/SFTP ã§ãããã¯ã¼ã¯æ©å¨ã¨ãã¡ã¤ã«ãéåä¿¡ãã net_get ã¢ã¸ã¥ã¼ã«ã¨ã net_put ã¢ã¸ã¥ã¼ã« ãã§ãã¾ããã ãã®ãã¡ããã®è¨äºã§ã¯ãã¡ã¤ã«ãåä¿¡ãã net_get ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ãCisco IOS ã® startup-config ã®ããã¯â¦
StackStorm ã«ã¯ Ansible ã ZabbixãSlackãªã©ã®ãã¼ã«ã¨é£æºããããã® Pack ã¨ããæ©è½åä½ããããStackStorm Exchange ã¨ãããµã¤ãã§ä¸è¦§ã確èªã§ãã¾ãã æ°ãã Pack ã追å ãããã¨ãã¯å ¬å¼ããã°ã§ç´¹ä»ãããã®ã§æ°ãã¤ããã®ã§ãããæ¢åã® Pack â¦
â ç¾è±¡ junos_command ã junos_config ã¢ã¸ã¥ã¼ã«ã netconf æ¥ç¶ã§ä½¿ç¨æã«ãPlaybook ãªã©ã®æ¸ãæ¹ã®ä¸åã«ãã fatal: [172.16.0.1]: FAILED! => {"msg": "'NoneType' object has no attribute 'startswith'"} ã¨ããã¨ã©ã¼ã«ãªã£ã¦ãã¾ããã¨ãããã¾ãâ¦
â ã¯ããã« ç¾å¨éçºä¸ã® Ansible 2.7 (develãã©ã³ã) ã§ããããã¯ã¼ã¯æ©å¨ã¸ã® åç §ç³»ã³ãã³ããå®è¡ããã¢ã¸ã¥ã¼ã« cli_command ãç»å ´ãããã¨ãç¥ãã¾ããã Ansible 2.7 New Modules2018/08/07cli_commandååã®éãããããã¯ã¼ã¯ããã¤ã¹ã«å¯¾ãã¦ãâ¦
ã¯ããã« å¼ç¤¾ã§ã¯å¹´ã«æ°åãAP Tech Fest ã¨ãã社å åãã®æè¡ã¤ãã³ããéå¬ãã¦ãã¾ãã(åè:2017å¹´11æéå¬åï¼ å¤§ä½æ¯åä½ãããã®çºè¡¨ãã¦ããã®ã§ããã2018/07/18 éå¬åã§ã¯ãç¡æã§ä»®æ³Junosç°å¢ãæå ã«ä½ãããã¨ããçºè¡¨ããã¾ããã è³æ æâ¦
â ã¯ããã« ãç¥ãåç¦å²¡éå¬ï¼ Ansible Nitght (æ§Meetup)ã¯2017å¹´ã¾ã§ã¯æ±äº¬ã§ã®ã¿ã®éå¬ã§ãããã2018å¹´ã¯ä»ã®å ´æã§ãéå¬ããã¦ãã¾ãã 7æã«ã¯å¤§éªã§ãããã¦8æ3æ¥ã«ã¯ç¦å²¡ã§ Ansible Night in Fukuoka 2018.08 ãéå¬ããã¾ããã ansible-users.câ¦
â ã¯ããã« ç§ã¯æ®æ®µãçºè¡¨è³æã SlideShare ã¸ã¢ãããã¼ããã¦ãã¾ãã www.slideshare.net ãããã2017å¹´ã« SlideShare ã¯ã¹ã©ã¤ããå·®ãæ¿ããã§ããªãä»æ§ã«å¤ãã£ã¦ãã¾ãã¾ããã ç§ã®è¦³æ¸¬ç¯å²ã§ã¯ãã®é ãã Speaker Deck ã¸ç§»è¡ããæ¹ãã¡ãã»ãâ¦