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.

19 lines
858 B

  1. ---
  2. - name: gather os specific variables
  3. include_vars: "{{ item }}"
  4. with_first_found:
  5. - files:
  6. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_version|lower|replace('/', '_') }}.yml"
  7. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_release|lower }}-{{ host_architecture }}.yml"
  8. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_release|lower }}.yml"
  9. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
  10. - "{{ ansible_distribution|lower }}-{{ host_architecture }}.yml"
  11. - "{{ ansible_distribution|lower }}.yml"
  12. - "{{ ansible_os_family|lower }}-{{ host_architecture }}.yml"
  13. - "{{ ansible_os_family|lower }}.yml"
  14. - defaults.yml
  15. paths:
  16. - ../vars
  17. skip: true
  18. tags:
  19. - facts