Closed bwearp closed 3 years ago
I can't reproduce the issue you are having:
---
- hosts: default
gather_facts: false
vars:
provider:
server: 192.168.143.154
user: admin
password: XXXxXXXXXXX
validate_certs: no
server_port: 443
tasks:
- name: Configure device connectivity for standard HA pair
bigip_device_connectivity:
config_sync_ip: 172.16.2.11
mirror_primary_address: 172.16.2.11
unicast_failover:
- address: management-ip
- address: 172.16.2.11
provider: "{{ provider }}"
delegate_to: localhost
I get the expected output:
(Ansible) BZH $ ansible-playbook -i hosts site.yml
PLAY [default] *********************************************************************************************************************************************************************************
TASK [Configure device connectivity for standard HA pair] **************************************************************************************************************************************
changed: [192.168.143.154]
PLAY RECAP *************************************************************************************************************************************************************************************
192.168.143.154 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
(Ansible) BZH $
Could you try a more basic test like mine and see if it works as expected ?
@bwearp Can you share your findings with suggestions from @nmenant .
Hi,
Sorry. It was a typo on my behalf - moving from "server" to "provider" - I made a mistake.
Apologies. Thank you for your swift and effective response.
Kind regards,
Ben
From: Trinath Somanchi @.> Sent: 21 April 2021 21:46 To: F5Networks/f5-ansible @.> Cc: Ben Wyatt Ben.Wyatt@F5.com; Mention @.***> Subject: Re: [F5Networks/f5-ansible] bigip_device_connectivity | Unexpected Identifier (#2007)
EXTERNAL MAIL: @.***
@bwearphttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbwearp&data=04%7C01%7CBen.Wyatt%40F5.com%7C53044506a640468d3e0108d904ed6947%7Cdd3dfd2f6a3b40d19be0bf8327d81c50%7C0%7C0%7C637546239990573156%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=13d%2FRQDbtUNdkMlTenZ0xGuXIyPVdPXhUKP2OxisdMg%3D&reserved=0 Can you share your findings with suggestions from @nmenanthttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnmenant&data=04%7C01%7CBen.Wyatt%40F5.com%7C53044506a640468d3e0108d904ed6947%7Cdd3dfd2f6a3b40d19be0bf8327d81c50%7C0%7C0%7C637546239990573156%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2l0drt5%2F5H2Fmpqt%2BH42VrMqp2YsUuaBXeQsEQcQ5Yg%3D&reserved=0 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FF5Networks%2Ff5-ansible%2Fissues%2F2007%23issuecomment-824242931&data=04%7C01%7CBen.Wyatt%40F5.com%7C53044506a640468d3e0108d904ed6947%7Cdd3dfd2f6a3b40d19be0bf8327d81c50%7C0%7C0%7C637546239990583151%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2B4sQFpJHypRINfPQaBYCtdBKM86YeFqbdNHI86rayU%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIRHBUBB4SNLFBOMHJPDAATTJ4FPTANCNFSM42ONOVNQ&data=04%7C01%7CBen.Wyatt%40F5.com%7C53044506a640468d3e0108d904ed6947%7Cdd3dfd2f6a3b40d19be0bf8327d81c50%7C0%7C0%7C637546239990583151%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SVZJ%2B80ppEjEWN4s0hDzXTTOiHjjYHbIlFfwHikLNEs%3D&reserved=0.
thank you. Closing this issue.
COMPONENT NAME
bigip_device_connectivity
Environment
ANSIBLE VERSION
BIGIP VERSION
CONFIGURATION
[ben]% cat /etc/ansible/ansible.cfg
[defaults] interpreter_python = /usr/local/bin/python3.9
OS / ENVIRONMENT
Big Sur 11.2.3
SUMMARY
Error: "msg": "b'{\"code\":400,\"message\":\"Unexpected identifier \\\"{\'address\': \'management-ip\'}\\\" \\\"{\\\" is required\",\"errorStack\":[],\"apiError\":26214401}'"
STEPS TO REPRODUCE
EXPECTED RESULTS
HA connectivity to be configured
ACTUAL RESULTS