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.

35 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: facts
  16. - name: install rkt pkg on ubuntu
  17. apt:
  18. deb: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
  19. state: present
  20. register: rkt_task_result
  21. until: rkt_task_result|succeeded
  22. retries: 4
  23. delay: "{{ retry_stagger | random + 3 }}"
  24. when: ansible_os_family == "Debian"
  25. - name: install rkt pkg on centos
  26. yum:
  27. pkg: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
  28. state: present
  29. register: rkt_task_result
  30. until: rkt_task_result|succeeded
  31. retries: 4
  32. delay: "{{ retry_stagger | random + 3 }}"
  33. when: ansible_os_family == "RedHat"