Forum Discussion
JoshBarrow
Cirrus
Feb 14, 2022Ansible Error: An exception occurred during task execution
Wondering if anyone has seen this type of error using Ansible. Any information would be gladly appreciated! [ Spoiler ]
JRahm
Admin
Feb 17, 2022nice use of the spoiler option! For those that are better versed with ansible errors than I, do you have the (sanitized) playbook you're running that you can share, what version of BIG-IP and what version of python you're using? Thanks...Jason
JoshBarrow
Cirrus
Feb 22, 2022It is running Python Version 3.8 and BIG IP Version 14.1.2.6.
Sanitized Playbook here
Spoiler
- name: BIG-IP SETUP
hosts: f5_lab
connection: local
gather_facts: false
ignore_errors: true
vars_files:
- varsheet.yml
tasks:
# ------------------------ Setup Provider ------------------------
- name: Setup provider
set_fact:
provider:
server: "Server"
user: "{{ansible_user}}"
password:
server_port: 443
validate_certs: false
# ------------------------ Create New Pool ------------------------
- name: CREATE POOL
f5networks.f5_modules.bigip_pool:
provider: "{{ provider }}"
name: "{{site_name}}"
lb_method: "round-robin"
monitors: "/Common/tcp"
# ------------------------ Add Pool Members ------------------------
- name: ADD POOL MEMBERS
f5networks.f5_modules.bigip_pool_member:
provider: "{{ provider }}"
state: "present"
address: "{{ item.host }}"
name: "{{ item.name }}"
port: "{{ site_port }}"
pool: "{{site_name}}"
with_items: "{{pool_members}}"
# ------------------------ Create Virtual Server ------------------------
- name: Add virtual server
f5networks.f5_modules.bigip_virtual_server:
provider: "{{ provider }}"
state: present
partition: Common
name: "{{site_name}}"
destination: "{{ virtual_ip }}"
port: "443"
pool: "{{site_name}}"
snat: Automap
profiles:
- name: http
context: all
- name: "{{site_name}}"
context: server-side
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects