Existing Ansible BIG-IP modules
Right around the time that I started at F5, I was at the pinnacle of my exposure to Ansible. So imagine my surprise when I saw BIG-IP modules in the Ansible core product! I immediately wanted to know...
Updated Jun 06, 2023
Version 2.0Tim_Rupp
Altostratus
Joined May 21, 2019
Tim_Rupp
Apr 13, 2017Altostratus
@mthornton42 you can provide the values needed to connect in a number of ways.
- store them in ansible vault
- prompt for them with ansible's vars_prompt functionality http://docs.ansible.com/ansible/playbooks_prompts.html
- read them from a file with include_vars http://docs.ansible.com/ansible/include_vars_module.html
If you use vars_prompt in your playbook, just refer to the variables you set when you use the tasks. For example.
...
vars_prompt:
- name: "username"
prompt: "what is your name?"
- name: "password"
prompt: "what is your password?"
private: yes
tasks:
- name: foo
bigip_virtual_server:
...
user: "{{ username }}"
password: "{{ password }}"
...
be aware that vars_prompt is a playbook level configuration.