update.yml 791 B

12345678910111213141516171819202122
  1. ---
  2. - name: Populate oo_hosts_to_update group
  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_hosts_to_update
  11. add_host:
  12. name: "{{ item }}"
  13. groups: oo_hosts_to_update
  14. ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
  15. ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}"
  16. with_items: (groups["tag_env-host-type_{{ cluster_id }}-openshift-master"] | default([]))
  17. | union(groups["tag_env-host-type_{{ cluster_id }}-openshift-node"] | default([]))
  18. | union(groups["tag_env-host-type_{{ cluster_id }}-openshift-etcd"] | default([]))
  19. - include: ../../common/openshift-cluster/update_repos_and_packages.yml
  20. - include: config.yml