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

- name: OpenShift Node Problem Detector
  hosts: oo_first_master
  roles:
  - role: openshift_facts
  - role: openshift_node_problem_detector

- name: Node Problem Detector End
  hosts: all
  gather_facts: false
  tasks:
  - name: Set Node Problem Detector install 'Complete'
    run_once: true
    set_stats:
      data:
        installer_phase_node_problem_detector:
          status: "Complete"
          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
