wip.yml 702 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name: WIP
  3. hosts: localhost
  4. become: no
  5. connection: local
  6. gather_facts: no
  7. vars_files:
  8. - vars.yml
  9. tasks:
  10. - name: Evaluate oo_masters_for_deploy
  11. add_host:
  12. name: "{{ item }}"
  13. groups: oo_masters_for_deploy
  14. ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user | default(ansible_ssh_user, true) }}"
  15. ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}"
  16. with_items: groups["tag_env-host-type-{{ cluster_id }}-openshift-master"] | default([])
  17. - name: Deploy OpenShift Services
  18. hosts: oo_masters_for_deploy
  19. connection: ssh
  20. gather_facts: yes
  21. user: root
  22. vars_files:
  23. - vars.yml
  24. roles:
  25. - openshift_registry
  26. - openshift_router