您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
413B

  1. ---
  2. - name: host_vars directory
  3. local_action:
  4. file
  5. path={{ playbook_dir }}/host_vars/{{inventory_hostname}}
  6. state=directory
  7. - name: host_vars file
  8. local_action:
  9. template
  10. src=host_vars.yml.j2
  11. dest={{ playbook_dir }}/host_vars/{{inventory_hostname}}/{{_host_vars_filename}}.yml
  12. - name: include host_vars
  13. include_vars:
  14. dir: "{{ playbook_dir }}/host_vars/{{inventory_hostname}}/"