update.yml 841 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - hosts: localhost
  3. gather_facts: no
  4. tasks:
  5. - include_vars: vars.yml
  6. - include_vars: cluster_hosts.yml
  7. - add_host:
  8. name: "{{ item }}"
  9. groups: l_oo_all_hosts
  10. with_items: g_all_hosts
  11. - hosts: l_oo_all_hosts
  12. gather_facts: no
  13. tasks:
  14. - include_vars: vars.yml
  15. - include_vars: cluster_hosts.yml
  16. - name: Populate oo_hosts_to_update group
  17. hosts: localhost
  18. connection: local
  19. become: no
  20. gather_facts: no
  21. tasks:
  22. - name: Evaluate oo_hosts_to_update
  23. add_host:
  24. name: "{{ item }}"
  25. groups: oo_hosts_to_update
  26. ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
  27. ansible_become: "{{ deployment_vars[deployment_type].become }}"
  28. with_items: g_all_hosts | default([])
  29. - include: ../../common/openshift-cluster/update_repos_and_packages.yml
  30. - include: config.yml