config.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. - name: etcd Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set etcd install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_etcd:
  11. status: "In Progress"
  12. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  13. - import_playbook: ca.yml
  14. - import_playbook: certificates.yml
  15. - name: Configure etcd
  16. hosts: oo_etcd_to_config
  17. any_errors_fatal: true
  18. tasks:
  19. - import_role:
  20. name: openshift_clock
  21. - import_role:
  22. name: etcd
  23. vars:
  24. etcd_peers: "{{ groups.oo_etcd_to_config | default([], true) }}"
  25. etcd_certificates_etcd_hosts: "{{ groups.oo_etcd_to_config | default([], true) }}"
  26. - import_role:
  27. name: nickhammond.logrotate
  28. - name: etcd Install Checkpoint End
  29. hosts: all
  30. gather_facts: false
  31. tasks:
  32. - name: Set etcd install 'Complete'
  33. run_once: true
  34. set_stats:
  35. data:
  36. installer_phase_etcd:
  37. status: "Complete"
  38. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"