start_cluster.yaml 529 B

1234567891011121314151617181920
  1. ---
  2. - name: Retrieve efs
  3. oc_obj:
  4. state: list
  5. kind: dc
  6. selector: "provisioners-infra=efs"
  7. namespace: "{{openshift_provisioners_project}}"
  8. register: efs_dc
  9. when: openshift_provisioners_efs | bool
  10. - name: start efs
  11. oc_scale:
  12. kind: dc
  13. name: "{{ object }}"
  14. namespace: "{{openshift_provisioners_project}}"
  15. replicas: 1
  16. with_items: "{{ efs_dc.results.results[0]['items'] | map(attribute='metadata.name') | list }}"
  17. loop_control:
  18. loop_var: object
  19. when: openshift_provisioners_efs | bool