Dig deeper into Ansible and F5 integration
Published Apr 05, 2017
Version 1.0Was this article helpful?
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:
..... .....
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