2022-03-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ããã« AAP 2.x ã«ãªã£ã¦ãããAnsible ã®å®è¡ç°å¢ã Python ã® venv ãããã³ã³ããã«å¤ããã¾ããã ã³ã³ããã®ä¸ã«ãå©ç¨ããã³ã¬ã¯ã·ã§ã³ãä»è¾¼ãã§ããããã§ãããAutomation Controller ã触ã£ã¦ãã¨ãã«ãã³ã³ããå ã®ã³ã¬ã¯ã·ã§ã³ä¸è¦§ã確èªããâ¦
ã¯ããã« ã¿ã¹ã¯ç®¡çãã¼ã«ï¼SaaSï¼ã§ãã Backlog ã«ã¯Git ãã¹ãã£ã³ã°æ©è½ãããã¾ãã https://support-ja.backlog.com/hc/ja/categories/360002262194-Git-Subversion ãã«ãªã¯ã¨ã¹ãæ©è½ãããããã課é¡ã¨é¢é£ä»ãã§ããã¨çµç·¯ããã¬ã¼ã¹ã§ãã¦ãããªâ¦
ã¯ããã« firewalld ã® firewall-cmd --list-all ã®çµæã§ãforward ã¨ããé ç®ãããç°å¢ã¨ãªãç°å¢ããããã¨ã«æ°ãä»ãã¾ãããforward-ports ã¨ã¯ã¾ãå¥ç©ã§ãã 0.9.0ã§å°å ¥ããããIntra Zone Forwarding ã¨ããæ©è½ã®ãã®ã«ããããã§ãã æ°ã«ãªã£ãâ¦
ã¯ããã« Red Hat Enterprise Linux 9.0 ããGUIã§ãªãæ¹ã®ãµã¼ãã¼ã¨ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ããã [2022/05/19追è¨] Red Hat Enterprise Linux 9.0 æ£å¼çããªãªã¼ã¹ãããããããã¼ã¿ã ã£ãç®æãæ£å¼çã§ç¢ºèªããå 容ã«æ´æ°ãã¾ããã Python å¨ããã©ãâ¦
ã¯ããã« â 1. Automation mesh ã«ããããã¼ãã®ç¨®é¡ â 2. ä»åã®ç°å¢ ï¼ã³ã³ããã¼ã«ãã¼ãã¨å®è¡ãã¼ãã®åé¡ï¼ â 3. ä¸æºå 3.1. subscription-manage ã«ããä½æ¥ 3.2. SSHãã¼ã®æ¥ç¶ â 4. ã¤ã³ã¹ãã¼ã« 4.1. ã¤ã³ã¹ãã¼ã©ã¼ã®æºå 4.2. inventory ã®ä¿®â¦
ã¯ããã« å æ¥ ansible-lint 6.0.0 ããªãªã¼ã¹ããã¾ããã github.com .config/ansible-lint.yml ãèªã¿è¾¼ãããã«ãªã£ãããansible 2.9 ã Python3.6ã3.7 ããµãã¼ããããªããªã£ããããã©ã¼ãããæ©è½ãã¤ããªã©å¤æ´ãããã¾ããã ã¾ããã¤ã³ã¹ãã¼ã«â¦
ã¯ããã« åç» ansible-navigator ã¨ã¯ æºå ã¤ã³ã¹ãã¼ã« TUI ã«ãã Playbook å®è¡ ã¾ãã¯å®è¡ ansible-playbook ã³ãã³ãã¨åãå½¢å¼ã§ãOK ã¢ã¼ãã£ãã¡ã¯ãï¼ãã°)ã®ä¿åã¨ãªãã¬ã¤æ©è½ ã¢ã¼ãã£ãã¡ã¯ãã®ä¾ ãªãã¬ã¤æ©è½ã§åç¾è¡¨ç¤º è¨å®ã¯ ansible-navâ¦
ã¯ããã« ãã¼ã å ã§ãAnsible ã®å ¬å¼ããã¥ã¡ã³ãã®è¦æ¹ã«ã¤ãã¦ã®è©±ã«ãªã£ãã¨ãã«ãããåç §ããããã¥ã¡ã³ãã¯ã©ããã¨ãã話ã«çºå±ãã¾ããã 5ã¤ç´¹ä»ãã¾ãã対象ãã©ãããã©ã¼ã ã«éå®ããªããã®ãåãä¸ãã¦ãã¾ãã 1. åã¢ã¸ã¥ã¼ã«ã®èª¬æãã¼ã¸ â¦
ã¨ããç°å¢ã§ pip 㧠ansible ã® 5ç³»ãã¤ã³ã¹ãã¼ã«ãããã¨æã£ãããã¨ã©ã¼ã«ãªã£ããã¨ãããã¾ããã $ pip install ansible==5.2.0 ERROR: Could not find a version that satisfies the requirement ansible==5.2.0 (from versions: 1.0, 1.1, 1.2, 1.â¦
ã¯ããã« â 1. å ±é .tf ãã¡ã¤ã«ã®æºå 1.1. terraform.tf ã®ä½æ 1.2. provider.tf ã®ä½æ â 2. NTP ãµã¼ãã¼è¨å®0å°ããï¼å°ã¸ (POST) 2.1. ntp_post.tf ã®ä½æ 2.2. terraform init ã®å®è¡ 2.3. terraform plan ã®å®è¡ 2.4. terraform apply ã®å®è¡ 2.5.â¦
ç®æ¬¡æ©è½ã¨ã¯ ã¯ã¦ãªããã°ã«ã¯ç®æ¬¡ãç°¡åã«çæã§ããç®æ¬¡æ©è½ãããã¾ãã [:contents] ã¨å·®ãè¾¼ãã ãã§ãã ãã¿ã³ããã ç®æ¬¡ã®å¯¾è±¡ã«ãããã®ã¯ markdown ã§ãã # è¦åºã ã«ããè¦åºãã§ãã## è¦åºã ã `### è¦åºã ã®ãããªä¸ã®ã¬ãã«ã¾ã§ç®æ¬¡ã®å¯¾â¦
ã¯ããã« åç» ãã¼ã«ã¨å¤æ°ã¨ãã§ã㯠Role argument validation å¿ é ãã§ã㯠ã¨ã©ã¼ã«ãªãã±ã¼ã¹ æ£å¸¸ãªã±ã¼ã¹ ãã§ãã¯ã®ç¡å¹å åãã§ã㯠é¸æè¢ãã§ã㯠validate_argument_spec ã¢ã¸ã¥ã¼ã« ãã§ãã¯ã¢ã¼ãã§ãvalidateããã ansible-docã«ããargumâ¦
ã¯ããã« æå³ããªãã¾ã¾å®è¡ãé²ããªãããã«ãããããã¡ãã£ã¨ãããã¨ã§ãã¨ã©ã¼ã«åãã¦æ©ãã«å¦çãæ¢ããè¨å®ã®ç´¹ä»ã§ããã¤ã³ãã³ããªå¨ããä¸å¿ã§ãã ansible.cfg [defaults] duplicate_dict_key=error [inventory] host_pattern_mismatch=error aâ¦
--vault-password-file ãªãã·ã§ã³ã¨ã¯ Ansible ã«ã¯ãã¹ã¯ã¼ããªã©ã®æ©å¯æ å ±ãæå·åãã ansible-vault ã¨ããæ©è½ãããã¾ãã Playbook å®è¡æã«ã¯ä½ãããã®æ¹æ³ã§å¾©å·ãã¹ã¯ã¼ããæå®ããå¿ è¦ãããã¾ããansible-playbook ã³ãã³ãã«ãé¢é£ãªãã·ã§â¦