You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
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}}/"