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.

31 lines
1.2 KiB

  1. ---
  2. - name: Containerd-common | check if fedora coreos
  3. stat:
  4. path: /run/ostree-booted
  5. get_attributes: false
  6. get_checksum: false
  7. get_mime: false
  8. register: ostree
  9. - name: Containerd-common | set is_ostree
  10. set_fact:
  11. is_ostree: "{{ ostree.stat.exists }}"
  12. - name: Containerd-common | gather os specific variables
  13. include_vars: "{{ item }}"
  14. with_first_found:
  15. - files:
  16. - "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower | replace('/', '_') }}.yml"
  17. - "{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}-{{ host_architecture }}.yml"
  18. - "{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml"
  19. - "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower | replace('/', '_') }}.yml"
  20. - "{{ ansible_distribution | lower }}-{{ host_architecture }}.yml"
  21. - "{{ ansible_distribution | lower }}.yml"
  22. - "{{ ansible_os_family | lower }}-{{ host_architecture }}.yml"
  23. - "{{ ansible_os_family | lower }}.yml"
  24. - defaults.yml
  25. paths:
  26. - ../vars
  27. skip: true
  28. tags:
  29. - facts