adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
86 stars 101 forks source link

Discuss upgrading Ansible on the VPC server #3679

Open Haroon-Khel opened 3 months ago

Haroon-Khel commented 3 months ago

The version of ansible on the vpc server is outdated.

root@infra-ibmcloud-vagrant-x64:~# ansible --version
ansible 2.9.16
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0]

it does not work well with the python 3.12, which is the latest python version present on the vagrant boxes hosted on the vpc server. As a result we have to implement hacky solutions to get our playbooks to run on the hosted vagrant boxes, see https://github.com/adoptium/infrastructure/pull/3663

We should be using a version of ansible >2.15 at least. But before upgrading, we need to discuss if certain OSs/vagrant boxes will be affected

Haroon-Khel commented 3 months ago

ping @steelhead31

steelhead31 commented 3 months ago

@Haroon-Khel , I've had a look into upgrading ansible on the host, but the O/S itself requires an upgrade.. see https://github.com/orgs/adoptium/projects/34/views/7?pane=issue&itemId=68479156 , the host upgrade is currently blocked, as Im awaiting an update on whether its possible to back up the host, prior to risking the host upgrade. Ping me if you fancy a chat about both of these issues, and we can do some planning/have some more discussion.

sxa commented 3 months ago

Related: Upgrade the OS on the vagrant host: https://github.com/adoptium/infrastructure/issues/3589