---

- name: Container runtime Install Checkpoint Start
  hosts: "{{ g_runtime_hosts|default('k8s-cluster:etcd:calico-rr') }}"
  gather_facts: false
  tasks:
  - name: Set container runtime install 'In Progress'
    run_once: true
    set_stats:
      data:
        installer_phase_container_runtime:
          title: "container runtime Install"
          playbook: "playbooks/container-runtime/deploy.yml"
          status: "In Progress"
          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

- name: Configure container runtime
  hosts: "{{ g_runtime_hosts|default('k8s-cluster:etcd:calico-rr') }}"
  any_errors_fatal: true
  roles:
  - container_runtime

- name: Container runtime Install Checkpoint End
  hosts: "{{ g_runtime_hosts|default('k8s-cluster:etcd:calico-rr') }}"
  gather_facts: false
  tasks:
  - name: Set container runtime install 'Complete'
    run_once: true
    set_stats:
      data:
        installer_phase_container_runtime:
          status: "Complete"
          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
