---
# TODO: package this?
- name: Copy static master scripts
  copy:
    src: "{{ item }}"
    dest: "/usr/local/bin/"
    mode: 0500
  with_items:
  - "scripts/{{ l_runtime }}/master-exec"
  - "scripts/{{ l_runtime }}/master-logs"
  - "scripts/{{ l_runtime }}/master-restart"
  vars:
    l_runtime: "{{ 'crio' if (openshift_use_crio | bool) else 'docker' }}"

- name: Ensure cri-tools installed
  package:
    name: cri-tools
    state: present
  when: openshift_use_crio | bool
