k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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
32 lines
893 B
---
|
|
- name: Skopeo | check if fedora coreos
|
|
stat:
|
|
path: /run/ostree-booted
|
|
get_attributes: false
|
|
get_checksum: false
|
|
get_mime: false
|
|
register: ostree
|
|
|
|
- name: Skopeo | set is_ostree
|
|
set_fact:
|
|
is_ostree: "{{ ostree.stat.exists }}"
|
|
|
|
- name: Skopeo | Uninstall skopeo package managed by package manager
|
|
package:
|
|
name: skopeo
|
|
state: absent
|
|
when:
|
|
- not (is_ostree or (ansible_distribution == "Flatcar Container Linux by Kinvolk") or (ansible_distribution == "Flatcar"))
|
|
ignore_errors: true # noqa ignore-errors
|
|
|
|
- name: Skopeo | Download skopeo binary
|
|
include_tasks: "../../../download/tasks/download_file.yml"
|
|
vars:
|
|
download: "{{ download_defaults | combine(downloads.skopeo) }}"
|
|
|
|
- name: Copy skopeo binary from download dir
|
|
copy:
|
|
src: "{{ downloads.skopeo.dest }}"
|
|
dest: "{{ bin_dir }}/skopeo"
|
|
mode: "0755"
|
|
remote_src: true
|