BIGIP的Ansible模块bigip_pool_member总是返回“已更改”状态

问题描述 投票:2回答:1

我正在尝试使用bigip_pool_member将池成员添加到bigip池。

在ansible版本2.5和2.6上测试

结果 - 即使没有进行任何更改,返回也会一直更改。

Involcation命令:

ansible-playbook -i test_inventory add_pool_members.yaml --extra-vars '{"hostgroup": "test-bigip"}'

我想知道是否有人对可能发生的事情有所了解?

剧本的内容如下

--
- hosts: "{{ hostgroup }}"
  gather_facts: no"
  tasks:
    - name: Add servers to connection pool
      bigip_pool_member:
        user: username
        password: password
        server: "{{inventory_hostname}}"
        validate_certs: no
        state: present
        partition: test
        pool: testpool
        host: 14.34.45.X
        name: test-server
        port: 80
        description: test
      delegate_to: localhost

运行结果

PLAY [f5-test] *****************************************************************************

TASK [Add servers to connection pool ] *****************************************************
changed: [f5-test -> localhost]

PLAY RECAP *********************************************************************************

f5-test              : ok=1    changed=1    unreachable=0    failed=0
ansible f5
1个回答
1
投票

这可能与模块中这个已知的bug有关。

当使用带有bigip_pool_memberstate: present模块对着实时设备运行playbook时,每次运行都会导致在实际中进行更改时不需要进行更改。

我也不是网络专家,但据我所知,如果您将监视器设置到池中,就会发生这种情况。

有一个pull request已经有与正确的下行机状态相关的修复。检查它是否适用于您,否则我建议添加一个关于该错误的详细评论。

© www.soinside.com 2019 - 2024. All rights reserved.