ããã¾ãéè¦ããªããããããªããã©ãã³ãã³ãã« & ã¤ãã¦ããã¯ã°ã©ã¦ã³ãã§ããã»ã¹ãèµ·åãããå ´å Ansible ã§ã©ããªé¢¨ã«æ¸ãã®ããªã£ã¦æã£ã¦èª¿ã¹ãã¡ã¢ã async ãå©ç¨ãã async ã¨ã¯ Asynchronous Actions and Polling â Ansible Documentation async ãªãã·ã§ã³ãå©ç¨ããã¨å¯¾è±¡ã®ãã¹ã㨠ssh æ¥ç¶ãåæããå¾ã§ã task ãç¶ç¶ãããã¨ãåºæ¥ããããã ä¾ãã°ãruby ã® Web ãµã¼ãã¼ãèµ·åããå ´åã«ã¯ä»¥ä¸ã®ããã«è¨è¿°ããã - shell: hostname > /tmp/index.html ; cd /tmp/ ; /usr/local/ruby/bin/ruby -run -e httpd . -p 8000 & register: result_check async: 5 poll: 0
{{#tags}}- {{label}}
{{/tags}}