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.

38 lines
1.2 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. environment: "{{ proxy_env }}"
  26. when: ansible_os_family == "Debian"
  27. - name: install rkt pkg on centos
  28. yum:
  29. pkg: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
  30. state: present
  31. register: rkt_task_result
  32. until: rkt_task_result|succeeded
  33. retries: 4
  34. delay: "{{ retry_stagger | random + 3 }}"
  35. environment: "{{ proxy_env }}"
  36. when: ansible_os_family == "RedHat"