main.yml 957 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. #
  3. # TODO: fix .m2/settings.xml
  4. #
  5. # TODO: /usr/bin/python is 3.11 (alternatives); override the link or use python3 for exercises
  6. #
  7. # TODO: copy connect images from quay.io to registry.ocp4.example.com:8443 with --format=v2s2 and then patch
  8. # ad482/connect_connectors.py ad482/connect_debezium.py ad482/connect_transformation.py
  9. # to use the new images
  10. #
  11. - name: Ensure Java is versioned correctly for AD482
  12. become: yes
  13. ansible.builtin.command:
  14. command: /usr/sbin/alternatives --set {{ item }} java-11-openjdk.x86_64
  15. loop:
  16. - java
  17. - javac
  18. - name: Load the python alternative
  19. ansible.builtin.slurp:
  20. src: /var/lib/alternatives/python
  21. register: altpy
  22. - name: Install an alternative for python3.9 if not found
  23. become: yes
  24. ansible.builtin.command:
  25. command: /usr/sbin/alternatives --install /usr/bin/python python /usr/bin/python3.9 15
  26. when:
  27. - "/usr/bin/python3.9" not in (altpy['content'] | b64decode)
  28. ...