magicalla.blogg.se

Ansible yum list
Ansible yum list





ansible yum list

The question I wanted to answer is: how can I perform a full system upgrade in Ansible prior to installing the Oracle database? The Ansible Playbookīefore talking more about the playbook, let’s see it first:. I have been using Ansible a lot over the past years, it’s a handy tool to know. It goes without saying that testing is a must. Please review your configuration carefully to ensure the correct outcome. Which is exactly what I want, but not necessarily what you want. It also checks for UEK5 and mandates Oracle Linux 7.8 or newer because everything is really old by modern standards …Ī few days ago Oracle Linux 7.9 has become available, and again – depending on your yum configuration – you might end up upgrading 7.8 to 7.9. The playbook therefore enables the UEK5 repository explicitly, and disables ol7_UEKR6 to remain on the UEK5 kernel branch. The most current oraclelinux-release-el7 package ships with the ol7_UEKR5 repository disabled and ol7_UEKR6 repository enabled. A flag controls the reboot behaviour.īe advised that not using a local repository can lead to an upgrade of kernel UEK5 to UEK6. In other cases, this approach is not tenable, consider yourself warned. A reboot is acceptable in my scenario where I’m building a new VM with Oracle software to be installed as part of the process. My playbook will determine whether a new kernel-uek has been installed as part of the upgrade process, and optionally reboot the VM should it have to. The playbook you are about to see later in the article is only intended for use prior to the initial installation of the Oracle binaries, after the VM has been freshly provisioned. The playbook is executed immediately after the VM becomes available. My target VM is running in Oracle’s Cloud, and I’m spinning it and its required supporting infrastructure up with a small Terraform script. Applying the same package updates in production as you did in test (after successful regression testing of course) makes testing in lower-tier environments so much more meaningful ) Upgrading

ansible yum list

You may want to consider using it to ensure all systems are upgraded to the same packages.

ansible yum list

I may have mentioned once or twice that a Spacewalk powered (or equivalent) local repository is best for consistency. This demands for an automated process in my opinion, and Ansible is the right tool for me. In a similar way I regularly upgrade the (cloud-vendor provided) base image when building a custom image using Packer. As part of the process of setting up VMs in the cloud for use with the Oracle database it is frequently necessary to update the systems to the latest and greatest, and hopefully more secure packages before the Oracle installation can begin.







Ansible yum list