main.yml 1008 B

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