Forum Discussion
Automate F5OS license activation using ansible
- Sep 15, 2025
Thank you for your replies. I was able to achieve this using ansible shell module. below task gets the activated dossier from "https://activate.f5.com/license/license.do" via proxy "http://proxyurl.com:80" and saves to local path.
- name: set license file path fact
set_fact:
license_file: "/localpath/{{ inventory_hostname }}_license.txt"- name: Activate License from F5 and extract license block
shell: |
curl -x http://proxyurl.com:80 -X POST \
-F "dossier={{ dossier }}" -F "submit=Next" -s -k \
https://activate.f5.com/license/license.do | \
sed -n '/<textarea[^>]*name="license"[^>]*>/,/<\/textarea>/p' | \
sed '1d;$d' | \
sed 's/"/"/g' > {{ license_file }}
register: f5os_license
delegate_to: localhost
Thank you for your replies. I was able to achieve this using ansible shell module. below task gets the activated dossier from "https://activate.f5.com/license/license.do" via proxy "http://proxyurl.com:80" and saves to local path.
- name: set license file path fact
set_fact:
license_file: "/localpath/{{ inventory_hostname }}_license.txt"- name: Activate License from F5 and extract license block
shell: |
curl -x http://proxyurl.com:80 -X POST \
-F "dossier={{ dossier }}" -F "submit=Next" -s -k \
https://activate.f5.com/license/license.do | \
sed -n '/<textarea[^>]*name="license"[^>]*>/,/<\/textarea>/p' | \
sed '1d;$d' | \
sed 's/"/"/g' > {{ license_file }}
register: f5os_license
delegate_to: localhost
- LiefZimmermanSep 18, 2025
Admin
Marking as solution - thanks for sharing!
If you disagree feel free to unMark.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com