A simple, and possibly poor, ansible playbook for upgrading devices.
Allows separating devices into two "reboot groups" to allow rolling restarts of clusters.
How to use this snippet:
Clone or download the repository.
Update the hosts.ini inventory file to your requirements
Run ansible-playbook -i hosts.ini upgrade.yaml
The script will identify a boot location to use from the first two on your big-ip system, will upload and install the image, and will then activate the boot location for each "reboot group" sequentially.