Upgrade BigIP using Ansible
Problem this snippet solves: 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 u...
Published Jul 11, 2020
Version 1.0Twpsyn_
Nimbostratus
Joined June 05, 2019
Twpsyn_
Nimbostratus
Joined June 05, 2019
Jul 21, 2020
great script.. i wrote something similar..
the only thing i added cpcfg to copy the config from HD1.1 to HD1.2
- name: Copy the config from HD1.1 to HD1.2 cpcfg --source=HD1.1 --reboot HD1.2 raw: curl -u "{{ansible_user}}":"{{ansible_ssh_pass}}" -k https://"{{ansible_host}}":8443/mgmt/tm/util/bash -H "Content-type:application/json" -d "{\"command\":\"run\",\"utilCmdArgs\":\"-c 'cpcfg --source=HD1.1 --reboot HD1.2'\"}"ignore_errors: Trueregister: cpcfg