Dig deeper into Ansible and F5 integration
Basics of Ansible and F5 integration were covered in a joint webinar held earlier in March 2017. To learn more about the integration and current F5 module support along with some use cases view the w...
Published Apr 05, 2017
Version 1.0Payal_S
Ret. Employee
Joined May 16, 2019
Payal_S
Ret. Employee
Joined May 16, 2019
Payal_S
Oct 19, 2017Ret. Employee
Sure I understand, I am using the concept of roles here which is Ansible best practice but it can get confusing.
To keep it simple have the variable file and the playbook in the same directory and then run the playbook ansible-playbook playbook-name.yaml
If your variable file name is say 'variable_file.yaml', then in your playbook you would reference the variable file as follows:
-
name: Onboarding BIG-IP hosts: bigip gather_facts: false vars_files:
- variable_file.yaml
..... .....
You can check out the following github as well for an example: https://github.com/payalsin/f5-ansible/blob/master/playbooks/onboarding-bigip.yml
Thanks