ã¯ããã« ç¹å®ã®ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ãããã¨ã確èªãã Playbook ã§ãã åä½ç¢ºèªç°å¢ ansible 2.9.19 ansible-base 2.10.4 ä»çµã¿ã¯ä»¥ä¸ã®ã¨ããã§ãã yum ã¢ã¸ã¥ã¼ã«ã® state ãªãã·ã§ã³ã§ installed ãæå®ãã ãã®ã¿ã¹ã¯ããã§ãã¯ã¢ã¼ãã§å®è¡ãã çµæã® changed ã false ã§ããã°ã¤ã³ã¹ãã¼ã«æ¸ã¿ã¨å¤æã§ãã Playbook --- - hosts: sv gather_facts: false become: true tasks: - name: yum (check mode) yum: name: httpd state: installed check_mode: true # ããå¤§äº register: result_yum_installed - name: assert httpd
{{#tags}}- {{label}}
{{/tags}}