---
- name: Monitor Availability Start
  hosts: all
  gather_facts: false
  tasks:
  - name: Set Monitor Availability 'In Progress'
    run_once: true
    set_stats:
      data:
        installer_phase_monitor_availability:
          title: "Monitor Availability"
          playbook: "playbooks/openshift-monitor-availability/config.yml"
          status: "In Progress"
          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"


- name: Configure Monitor Availability
  hosts: oo_first_master
  roles:
  - role: openshift_monitor_availability

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