config.yml 947 B

123456789101112131415161718192021222324252627282930
  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: Setup CFME
  17. hosts: m01.example.com
  18. pre_tasks:
  19. - name: Create a temporary place to evaluate the PV templates
  20. command: mktemp -d /tmp/openshift-ansible-XXXXXXX
  21. register: r_openshift_cfme_mktemp
  22. changed_when: false
  23. tasks:
  24. - name: Run the CFME Setup Role
  25. include_role:
  26. name: openshift_cfme
  27. vars:
  28. template_dir: "{{ hostvars[groups.masters.0].r_openshift_cfme_mktemp.stdout }}"