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.

36 lines
1.1 KiB

  1. ---
  2. - name: gather os specific variables for rkt
  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 }}.yml"
  8. - "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
  9. - "{{ ansible_distribution|lower }}.yml"
  10. - "{{ ansible_os_family|lower }}.yml"
  11. - defaults.yml
  12. paths:
  13. - ../vars
  14. skip: true
  15. tags:
  16. - facts
  17. - name: install rkt pkg on ubuntu
  18. apt:
  19. deb: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
  20. state: present
  21. register: rkt_task_result
  22. until: rkt_task_result|succeeded
  23. retries: 4
  24. delay: "{{ retry_stagger | random + 3 }}"
  25. when: ansible_os_family == "Debian"
  26. - name: install rkt pkg on centos
  27. yum:
  28. pkg: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
  29. state: present
  30. register: rkt_task_result
  31. until: rkt_task_result|succeeded
  32. retries: 4
  33. delay: "{{ retry_stagger | random + 3 }}"
  34. when: ansible_os_family == "RedHat"