- Hi!
We’re moving to orchestrate our TH1040S using ansible. This started to work out very nicely! But now we’re hitting an “Access Denied” when trying to handle partitions.
Here are some details
ACOS 4.1.4 - a10.acos_axapi either 1.2.latest or 6.0.1
- My user is in two partitions, but not the “shared” partition
Here’s an ansible playbook snippet:
vars:
common_auth_params:
ansible_host: "{{ ansible_host }}"
ansible_port: 443
ansible_username: "{{ netlb_username }}"
ansible_password: "{{ netlb_password }}"
a10_partition: "LB-LAN"
module_defaults:
a10.acos_axapi.a10_ip_dns_primary: "{{ common_auth_params }}"
tasks:
- name: "Query primary DNS"
a10.acos_axapi.a10_ip_dns_primary:
state: noop
register: dns_primary
If I comment the a10_partition
line out, everything works and I get the primary DNS for my default partition. But even setting it to the name of my default partition (so nothing should change), I get
Traceback (most recent call last):
File "…/ansible_collections/a10/acos_axapi/plugins/module_utils/client.py", line 86, in activate_partition
…
ansible_collections.a10.acos_axapi.plugins.module_utils.errors.ACOSException: 1023721472 Access Denied
Does anyone have an idea, what’s going wrong?