Ansible 使ç¨æã«æéåã£ãç¹ãããã¤ããã£ãã®ã§æ¸ãã¦ããã¾ãï¼ ãã£ã¹ããªãã¥ã¼ã·ã§ã³æ¯ã«å¦çãåãã ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«ãã£ã¦ï¼yum 㨠apt-get çã使ãåãããå ´åã¯ï¼ centos.yml ã ubuntu.yml çãä½æãã¦ï¼yum ã apt-get çã®å¦çãæ¸ãã¦ããã¾ãï¼ main.yml --- - include: ubuntu.yml when: ansible_distribution == "Ubuntu" ubuntu.yml --- - shell: apt-get -y update - shell: apt-get -y install aptitude - shell: aptitude -y install {{ item }} with_items: - make - gcc - curl - git ç°å¢å¤æ°ãæå®ãã
{{#tags}}- {{label}}
{{/tags}}