2023-04-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ããã« å æ¥ãcommunity.general.yaml ã³ã¼ã«ããã¯ãã©ã°ã¤ã³ ã使ã£ã¦ãPlaybook ã®å®è¡çµæãæ¹è¡ä»ãã§è¡¨ç¤ºãããæ¹æ³ãæ稿ãã¾ããã [Ansible] Playbookã®å®è¡çµæï¼ã¨ã©ã¼å«ãï¼ãæ¹è¡ä»ãã§è¡¨ç¤ºããï¼community.general.yaml ã³ã¼ã«ããã¯ãã©ã°â¦
ã¯ããã« Visual Studio Code (VS Code ) ã§ã¯ã表示ã®æ¡å¤§/縮å°æä½ãã§ãã¾ãããããã©ã«ãã§ã§ããæä½ã®å ´åã¯ã¡ãã¥ã¼ãã¿ã¼ããã«ãåçãå¤æ´ããã¾ãã å人çã«ã¯ãã¨ãã£ã¿ã¼ã®ã¿åçå¤æ´ãããæ©ä¼ã®ã»ããå¤ãã®ã§ããããã§ããã°ãªã¼ã¨æã£ã¦â¦
ã¯ããã« Ansible ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ã¯ãæ¹è¡ã®ãªã JSON ã§è¡¨ç¤ºãããããèªã¿ã«ããã¨ããæè¦ãè¦ããã¾ããã確ãã«ããã©ã«ãã ã¨ããã§ãã Ansible 㯠Playbook å®è¡çµæãã³ã¼ã«ããã¯ãã©ã°ã¤ã³ã¨ããä»çµã¿ã§æ±ããã¾ããããã¤ã種é¡ãããã®ã§â¦
ã¯ããã« å æ¥ã®è¨äºã§ãansible-lint ã³ãã³ãã®å³ææ§ãé«ããã«ã¯å¥éä»çµã¿ãå¿ è¦ãªæ¨ãæ¸ãã¾ãããä»åã¯ãèªååã®ä»çµã¿ã¨ã㦠pre-commit ã使ã£ã¦ä»è¾¼ãã§ã¿ã¾ãã ã ãã¶ã·ã³ãã«ãªè¨å®ã«æãã¦ãã¾ãã å°å ¥ venv ã¸ã® pre-commit ã®ã¤ã³ã¹ãã¼â¦
ã¯ããã« 2023å¹´5æã«ãªãªã¼ã¹äºå®ã® ansible-core 2.15 ã§ãvars ãã£ã¬ã¯ãã£ãç´ä¸ã«ãªã¹ãã§å¤æ°ãå®ç¾©ããæ¹æ³ã Deprecatedï¼éæ¨å¥¨ï¼ã¨ãã¦è¦åã表示ãããããã«ãªãã¾ããansible-core 2.15 ã® Porting Guide ã«ãæ²è¼ããã¦ãã¾ãã è¨èã«ããã¨â¦
ã¯ããã« VS Code ã«ã¯ãAnsible Playbook ãæ¸ãéã«ä¾¿å©ãªæ¡å¼µãããã¾ãã marketplace.visualstudio.com ã¨ã¦ã便å©ãªæ¡å¼µã§æ§ã ãªæ©è½ãããããã¡ã¤ã«ä¿åæã«èªå㧠ansible-lint ãå®è¡ãããã¨ãã§ãã¾ãã Playbook ã®ä¿åæã«ããã®Playbook ãèµ·â¦
ã¯ããã« ansible-navigator ã¯ãPlaybook ãå®è¡ããã ãã§ãªã ansible-lint ãå¼ã³åºãæ©è½ãããã¾ãã ã¿ã¤ãã«éããå¤å EE å´ã« ansible-lint ãå¿ è¦ã ããã¨æã£ã¦ãããã®ã®ãä¸å¿ç¢ºããã¦ã¿ããã¨æã£ãã®ã§è©¦ãã¾ããï¼çµæã¿ã¤ãã«éãã§ããï¼â¦
ã¯ããã« ansible-lint 6.13.0 ã§ãç¡è¦ããã«ã¼ã«ãå®ç¾©ãããã¡ã¤ã« ãå°å ¥ããã¾ããã å®ç¾©ãã¡ã¤ã«å㯠.ansible-lint-ignore ã¾ã㯠.config/ansible-lint-ignore.txt ã§ãï¼å人çã«ã¯å¾è ã好ã¿ï¼ããã¡ã¤ã«åã®å é ã® . æç¡ããæ¡å¼µåã®æç¡ãç°ãªâ¦
ã¯ããã« ansible-lint ã«ã¯ã¯ãyamllint ãå¼ã㧠YAML ã¨ãã¦ã®ãã§ãã¯ãããæ©è½ãããã¾ãã ãã¨ãã°ã1è¡ãããã®æåæ°ãä½æå以å ã§ããã¹ãããçå½å¤ã¯ã©ãæå®ããã¹ããããªã©ã®ã«ã¼ã«ã§ãã ããããæãã¦ããï¼ï¼ï¼ã®ã§ãããansible-lint â¦
ã¯ããã« ansible-navigator 3.0.0 ã§ãvars_prompt ãã£ã¬ã¯ãã£ãã ansible.builtin.pause ã¢ã¸ã¥ã¼ã« ã®ãããªãã¦ã¼ã¶ã¼ã®å ¥åãå¾ ã¤æ©è½ã¨çµã¿åããã¦ä½¿ãããã®ãªãã·ã§ã³ --enable-prompts ï¼ç縮形㯠--ep ï¼ã追å ããã¾ããã è©²å½ changelog: Aâ¦
ã¯ããã« pip ã§ãã pip freeze 㧠requirements.txt ã®ãã©ã¼ããããåºåã§ããã®ã¨åãããã«ãAnsible ã®ã³ã¬ã¯ã·ã§ã³ã§ãã³ã¬ã¯ã·ã§ã³ã®ä¸è¦§ã requirementst.yml ã®ãã©ã¼ãããã§åºåã§ããã°ä¾¿å©ãããããªããªã¨æãã¾ããã ansible-galaxy colleâ¦