渡辺ã§ãã æ°ä»ãã°7æãå¾åæ¦ãåæµ·éã¯å¤ã£ã½ããªãã¾ã¾ç§ã«ãªããããªæ°ããã¦ã¾ãã ä»æ¥ã¯Ansibleã®htpasswdã¢ã¸ã¥ã¼ã«ãç´¹ä»ãã¾ãã htpasswdã¢ã¸ã¥ã¼ã«ã¯æåéããhtpasswdã³ãã³ãã«ç¸å½ããApacheã®Basicèªè¨¼ã§åç §ãããã¹ã¯ã¼ããã¡ã¤ã«ã管çãã¾ãã Python passlib ã追å ãã htpasswdã¢ã¸ã¥ã¼ã«ãå©ç¨ããã«ã¯ãPythonã®passlibã©ã¤ãã©ãªãå¿ è¦ã§ãã AmazonLinuxã§ããã®ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããã«ã¯pipãå©ç¨ãã¦ãã ããã htpasswdã¢ã¸ã¥ã¼ã«ãå©ç¨ããåã«ãpython-passlibãã¤ã³ã¹ãã¼ã«ãã¦ããç¶æ ã«ãã¾ãããã - name: "python-passlib installed" pip: name: passlib htpasswdã¢ã¸ã¥ã¼ã«ã§htpasswdãä½æãã h
ææã§ãã Ansible Galaxyã¨ãããµã¼ãã¹ããåç¥ã§ãããããAnsibleã®å¦çåä½ã§ããRoleã®å ±æãµã¼ãã¹ã§ããChefã§ããã¨Supermarketã®ãããªæãã§ããããã åå¨ã¯ç¥ã£ã¦ãã¾ããã使ã£ããã¨ã¯ç¡ãã£ãã®ã§ãä»å試ãã¦ã¿ã¾ããã ã¦ã¼ã¶ç»é² Ansible Galaxyã®WEBãµã¤ãã«ã¢ã¯ã»ã¹ããã¦ã¼ã¶ç»é²ãè¡ãã¾ãããã TwitterãFacebookãGithubã®ã½ã¼ã·ã£ã«ã¢ã«ã¦ã³ããæã£ã¦ããã°ããã¨é£æºãããã¨ãã§ãã¾ãããåå¥ã«ã¦ã¼ã¶ç»é²ãè¡ãã¾ãã Ansible Galaxy | Find, reuse, and share the best Ansible content ã¦ã¼ã¶ç»é²ãå®äºãããããBrowse RolesãããExploreãã§Roleãçºãã¦ã¿ã¾ããããEC2ã«Jenkinsãã¤ã³ã¹ãã¼ã«ãããã¨èãã¦ããã®ã§je
渡辺ã§ãã ä»æ¥ã¯Ansibleã®retryãã¡ã¤ã«ã«é¢ããå°ãã¿ã§ãã å®è¡å¤±ææã«ä½æãããretryãã¡ã¤ã« Ansibleã§ã¯ãå®è¡å¤±ææã«ã失æãããã¹ãæ å ±ãªã©ãè¨è¿°ããretryãã¡ã¤ã«ãåºåãã¾ãã ãã®ãã¡ã¤ã«ããªãã·ã§ã³ã«è¨å®ãããã¨ã§ããªãã©ã¤æã«å®è¡ãããã¹ããå¶éã§ãã¾ãã ãããã使ãæ©ä¼ã¯ãã¾ããªããåãPlaybookã§å¤ãã®ãã¹ãã対象ã¨ãããããªå ´åã«éå®ãããã¨ããã®ãå®æ ã§ãã ãã®retryãã¡ã¤ã«ã¯ansible.cfgã®ãªãã·ã§ã³è¨å®ã§æå¶ã§ãã¾ãã retry_files_enabled retry_files_enabledãªãã·ã§ã³ã¯retryãã¡ã¤ã«ã®ä½æãå¶å¾¡ãã¾ãã Falseã«è¨å®ãããã¨ã§ãretryãã¡ã¤ã«ãä½æããã¾ããã [defaults] retry_files_enabled = False retry_files_
- git: repo=git@github.com:seizans/ansible-tut.git dest=/path/to/dir version=master accept_hostkey=yes accept_hostkey=yes ã¯ã.ssh/config 㧠StrictHostKeyChecking no ãæå®ããã®ã¨åãã§ãã ssh é¢é£ãè¨å®ãã¦å®è¡ãã Gitãªãã¸ããªã¸ã® sshéµã¯ãµã¼ãã¼ã«ç½®ããããã¼ã«ã«ã®ãã®ã使ãã¾ãã ããã§ã¯ ~/.ssh/id_rsa ã使ãã¾ãã ãã®ããã«ãansible-playbook ããµã¼ãã¼ã« ssh ããéã«ãForwardAgent=yes ããããã«ãã¾ãã ansible.cfg ãæºåããã°ããã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}