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

- name: Configure load balancers
  hosts: oo_lb_to_config
  roles:
  - role: openshift_facts
  - role: openshift_loadbalancer
  - role: tuned

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