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
1021 B

  1. ---
  2. - name: Runc | 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: Runc | set is_ostree
  10. set_fact:
  11. is_ostree: "{{ ostree.stat.exists }}"
  12. - name: Runc | Uninstall runc package managed by package manager
  13. package:
  14. name: "{{ runc_package_name }}"
  15. state: absent
  16. when:
  17. - not (is_ostree or (ansible_distribution == "Flatcar Container Linux by Kinvolk") or (ansible_distribution == "Flatcar"))
  18. - name: Runc | Download runc binary
  19. include_tasks: "../../../download/tasks/download_file.yml"
  20. vars:
  21. download: "{{ download_defaults | combine(downloads.runc) }}"
  22. - name: Copy runc binary from download dir
  23. copy:
  24. src: "{{ downloads.runc.dest }}"
  25. dest: "{{ runc_bin_dir }}/runc"
  26. mode: "0755"
  27. remote_src: true
  28. - name: Runc | Remove orphaned binary
  29. file:
  30. path: /usr/bin/runc
  31. state: absent
  32. when: runc_bin_dir != "/usr/bin"
  33. ignore_errors: true # noqa ignore-errors