If you want CI/CD use terraform or AS3 Declarative WAF (you can use ansible or terraform to again push as3) and host the WAF config in github. If you want to also handle learnings with policy builder then terraform is better or you can just make your own automation by using the api to export them.
Displaying BIG-IP ASM learning suggestions using the iControl REST API (f5.com)
Exercise 3.3 - Deploying a WAF policy through AS3 (f5.com)
"new_asm_policy": {
"class": "WAF_Policy",
"url": "https://raw.githubusercontent.com/f5devcentral/FAS-ansible-workshop-101/master/3.3-as3-asm/Test_WAF_Policy.xml",
"ignoreChanges": true
}