---
- name: Auto-heal Install Checkpoint Start
  hosts: all
  gather_facts: false
  tasks:
  - name: Set Auto-heal install 'In Progress'
    run_once: true
    set_stats:
      data:
        installer_phase_autoheal:
          title: "Auto-heal Install"
          playbook: "playbooks/openshift-autoheal/config.yml"
          status: "In Progress"
          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

- name: Auto-heal
  hosts: oo_first_master
  roles:
  - role: openshift_facts
  - role: openshift_autoheal

- name: Auto-heal Install Checkpoint End
  hosts: all
  gather_facts: false
  tasks:
  - name: Auto-heal install 'Complete'
    run_once: true
    set_stats:
      data:
        installer_phase_autoheal:
          status: "Complete"
          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
