Skip to content

The following is a quick playbook that uploads and installs F5 .ISO to your device and starts installing it on a new partition

Notifications You must be signed in to change notification settings

itlinux/ansible-f5-upload-install-os

 
 

Repository files navigation

ansible-f5-upload-install-os

I was asked to upgarde 40+ f5 devices in AWS, so i thought it would be best to automate the entire procoess using a simple ansible playbook.

  • Inventory list of all the f5s i needed to upgrade (active and standby) .. because we need the code on all the versions.

to execute install

ansible-playbook -i inventory/hosts install-os.yaml

to verify

ansible-playbook -i inventory/hosts verify-install.yaml

The playbook perfoms the following actions * saves the existing configurations * uploads the latest OS * installs it on a new partition * prints out an output of when its complete

install-os.yaml

  • uploads, installs and verifies the install, activate and shows the output

  • it will take a few min before you see the active partition. You may get a error but it will come back :)

install-os-boot.yaml

  • uploads, installs, verifies the install and copies the configuration from boot location HD1.1 (BIG-IP 15.1.0.2) to boot location HD1.3 (BIG-IP 15.1.0.4) and immediately reboot the system to the HD1.3 boot location:

cpcfg --source=HD1.1 --reboot HD1.3

On a VIPRION system, ensure each blade receives the updated configuration by running the cpcfg command with the clsh utility on the primary blade.

For example:

clsh cpcfg --source=HD1.1 --reboot HD1.3

  • Tested in VMware vsphere 6.7 = all good!

  • Tested on Azure = all good! (MAKE SURE YOU HAVE /shared/images with enough space)

Resize /shared partition to 10GB

tmsh modify /sys disk directory /shared new-size 10485760
tmsh save /sys config
reboot && exit

About

The following is a quick playbook that uploads and installs F5 .ISO to your device and starts installing it on a new partition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published