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.

32 lines
893 B

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