*bigip_configsync_action module is not working  in Ansible 2.5*

*ISSUE TYPE*

Since from 2.5 version, Ansible added provider to bigip_configsync_action, 
there is some confusion. 
bigip_configsync_action module not doing the config-SYNC and keep showing 
Error as ["Unable to connect to BIGIP_F52.test.com on port 22. Is 
\"validate_certs\" preventing this?"]


BIGIP_F52.test.com is my F5 Box name against which am ruining my playbook.

****
##### COMPONENT NAME
<!--- Name of the module -->  bigip_configsync_action

##### ANSIBLE VERSION

[root@localhost F5BIGIP]# ansible --version
ansible 2.5.0
  config file = /etc/ansible/F5BIGIP/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-16)]
[root@localhost F5BIGIP]#


##### PYTHON VERSION
[root@localhost F5BIGIP]# python -V
Python 2.7.5
[root@localhost F5BIGIP]#

##### BIGIP VERSION

[root@BIGIP_F52:Active:Not All Devices Synced] config # tmsh show sys 
version

Sys::Version
Main Package
  Product     BIG-IP
  Version     13.0.0
  Build       2.0.1671
  Edition     Hotfix HF2
  Date        Fri Apr 28 20:36:43 PDT 2017



##### CONFIGURATION

[root@localhost F5BIGIP]# cat ansible.cfg
[defaults]
inventory=inventory
#ask_pass      = True
transport      = ssh
remote_port    = 22
host_key_checking=False
[root@localhost F5BIGIP]#


##### OS / ENVIRONMENT
NA

##### SUMMARY

Since from 2.5 version, Ansible added provider to bigip_configsync_action, 
there is some confusion. 
bigip_configsync_action module not doing the config-SYNC and keep showing 
Error as ["Unable to connect to BIGIP_F52.test.com on port 22. Is 
\"validate_certs\" preventing this?"]


##### STEPS TO REPRODUCE

---
 - name : Auto Config-SYNC on F5 HA
   hosts : BIGIP_F52.test.com
#   connection : local
   gather_facts : no

   tasks:
     - name: Sync configuration from device to group
       bigip_configsync_action:
         server: BIGIP_F52.test.com
         user: "admin"
         password: "veera@123"
         transport: "rest"
         server_port: 22
         overwrite_config: yes
         device_group: "device-group-failover-bca6a09f80d1"
         sync_device_to_group: yes
         validate_certs: no
       delegate_to: localhost


Even I have tried with server_port: 443 with transport type as rest. 
I have tried with server_port: 22 with transport type as cli.
I have tried with server_port: 443 with transport type as cli.  



##### EXPECTED RESULTS
Config-SYNC will be performed.

##### ACTUAL RESULTS

fatal: [BIGIP_F52.test.com -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "device_group": "device-group-failover-bca6a09f80d1",
            "overwrite_config": true,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "provider": {
                "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "server": "BIGIP_F52.test.com",
                "server_port": 22,
                "ssh_keyfile": null,
                "timeout": 10,
                "transport": "rest",
                "user": "admin",
                "validate_certs": false
            },
            "server": "BIGIP_F52.test.com",
            "server_port": 22,
            "sync_device_to_group": true,
            "sync_most_recent_to_device": null,
            "transport": "rest",
            "user": "admin",
            "validate_certs": false
        }
    },
    "msg": "Unable to connect to BIGIP_F52.test.com on port 22. Is 
\"validate_certs\" preventing this?"
}
        to retry, use: --limit @/etc/ansible/F5BIGIP/test11.retry

PLAY RECAP 
*************************************************************************************************************
BIGIP_F52.test.com         : ok=0    changed=0    unreachable=0    failed=1

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2fe70e68-8855-405b-bdc9-9ac08ce6b776%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to