config.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ---
  2. # TODO: Make this work. The 'name' variable below is undefined
  3. # presently because it's part of the cfme role. This play can't run
  4. # until that's re-worked.
  5. #
  6. # - name: Pre-Pull manageiq-pods docker images
  7. # hosts: nodes
  8. # tasks:
  9. # - name: Ensure the latest manageiq-pods docker image is pulling
  10. # docker_image:
  11. # name: "{{ openshift_cfme_container_image }}"
  12. # # Fire-and-forget method, never timeout
  13. # async: 99999999999
  14. # # F-a-f, never check on this. True 'background' task.
  15. # poll: 0
  16. - name: Configure Masters for CFME Bulk Image Imports
  17. hosts: oo_masters_to_config
  18. serial: 1
  19. tasks:
  20. - name: Run master cfme tuning playbook
  21. include_role:
  22. name: openshift_cfme
  23. tasks_from: tune_masters
  24. - name: Setup CFME
  25. hosts: oo_first_master
  26. vars:
  27. r_openshift_cfme_miq_template_content: "{{ lookup('file', 'roles/openshift_cfme/files/miq-template.yaml') | from_yaml}}"
  28. pre_tasks:
  29. - name: Create a temporary place to evaluate the PV templates
  30. command: mktemp -d /tmp/openshift-ansible-XXXXXXX
  31. register: r_openshift_cfme_mktemp
  32. changed_when: false
  33. - name: Ensure the server template was read from disk
  34. debug:
  35. msg="{{ r_openshift_cfme_miq_template_content | from_yaml }}"
  36. tasks:
  37. - name: Run the CFME Setup Role
  38. include_role:
  39. name: openshift_cfme
  40. vars:
  41. template_dir: "{{ hostvars[groups.masters.0].r_openshift_cfme_mktemp.stdout }}"