base_packages.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ---
  2. # l_base_packages_hosts may be passed in via prerequisites.yml during scaleup plays
  3. # and upgrade_control_plane.yml upgrade plays.
  4. - name: Install packages necessary for installer
  5. hosts: "{{ l_base_packages_hosts | default('oo_all_hosts') }}"
  6. any_errors_fatal: true
  7. tasks:
  8. - when:
  9. - not openshift_is_atomic | bool
  10. block:
  11. - name: Ensure openshift-ansible installer package deps are installed
  12. package:
  13. name: "{{ item }}"
  14. state: present
  15. with_items:
  16. - iproute
  17. - "{{ 'python3-dbus' if ansible_distribution == 'Fedora' else 'dbus-python' }}"
  18. - "{{ 'python3-PyYAML' if ansible_distribution == 'Fedora' else 'PyYAML' }}"
  19. - "{{ 'python-ipaddress' if ansible_distribution != 'Fedora' else '' }}"
  20. - yum-utils
  21. when: item != ''
  22. register: result
  23. until: result is succeeded
  24. - name: Ensure various deps for running system containers are installed
  25. package:
  26. name: "{{ item }}"
  27. state: present
  28. with_items:
  29. - atomic
  30. - ostree
  31. - runc
  32. when:
  33. - >
  34. (openshift_use_system_containers | default(False)) | bool
  35. or (openshift_use_etcd_system_container | default(False)) | bool
  36. or (openshift_use_node_system_container | default(False)) | bool
  37. or (openshift_use_master_system_container | default(False)) | bool
  38. register: result
  39. until: result is succeeded