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
431B

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