erjac77 / ansible-module-f5bigip Goto Github PK
View Code? Open in Web Editor NEWAnsible module for F5 BIG-IP
License: Apache License 2.0
Ansible module for F5 BIG-IP
License: Apache License 2.0
Starting with Ansible version 2.2, all new modules are required to use imports in the form:
from module_utils.basic import AnsibleModule
The use of “wildcard” imports such as from module_utils.basic import *
is no longer allowed.
I'm trying to pull data from /mgmt/shared/identified-devices/config/device-info
Can't create a client-ssl profile with multiple options.
- name: "Create TLS standard clientssl profile"
f5bigip_ltm_profile_client_ssl:
f5_hostname: "{{ environment[0].F5_SERVER }}"
f5_port: "{{ environment[0].F5_SERVER_PORT }}"
f5_username: "{{ environment[0].F5_USER }}"
f5_password: "{{ environment[0].F5_PASSWORD }}"
defaults_from: "/Common/clientssl"
name: "clientssl-tls-standard"
partition: "{{ partition }}"
ciphers: "NATIVE:!MD5:!EXPORT:!DES:!DHE:!EDH:!RC4:!ADH:!SSLv2:!SSLv3:@SPEED"
options:
- dont_insert_empty_fragments
- single_dh_use
- no_sslv2
- no_sslv3
- no_tlsv1
- no_tlsv1_1
This gives an error:
TASK [Create TLS standard clientssl profile] ****************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of options must be one of: all_bugfixes,cipher_server_preference,dont_insert_empty_fragments,ephemeral_rsa,microsoft_big_sslv3_buffer,microsoft_sess_id_bug,msie_sslv2_rsa_padding,netscape_ca_dn_bug,netscape_challenge_bug,netscape_demo_cipher_change_bug,netscape_reuse_cipher_change_bug,no_session_resumption_on_renegotiation,no_ssl,no_sslv2,no_sslv3,no_tls,no_tlsv1,no_tlsv1_1,no_tlsv1_2,no_dtls,passive_close, none, pkcs1_check_1,pkcs1_check_2, single_dh_use,ssleay_080_client_dh_bug,sslref2_reuse_cert_type_bug,tls_d5_bug,tls_rollback_bug, got: ['dont_insert_empty_fragments', 'single_dh_use', 'no_sslv2', 'no_sslv3', 'no_tlsv1', 'no_tlsv1_1']"}
F5 bigip modules included in Ansible supports a provider
dictionnary object with server
, user
, password
, server_port
and validate_certs
May you please adapt your modules to also accept same structure, so that playbook mixing both modules look homogeneous.
Many thanks for these useful modules.
https://support.f5.com/csp/article/K23928121
Option | Description | When to use |
---|---|---|
-s | Set maximum file size to capture, in bytes. Setting this value to -s 0 is equivalent to 75 MB. | BIG-IP system log files are truncated due to size. |
-v | Display verbose output. | The qkview command does not complete generating a QKView file. |
-f | Provide an alternate file name. If not set, the default file name syntax is [BIGIP_HOSTNAME].qkview. | You want to generate multiple qkview diagnostic files taken at different times. |
-t | Set maximum time for any one module to complete. | F5 Technical Support tells you that a module's information is missing from your QKView diagnostic file. |
-c | Collect complete system information, possibly including sensitive user information. | F5 Technical Support requests complete information in the qkview diagnostic file. |
--exclude | Exclude specified log files from output. | You want to exclude sensitive files when you run the qkview command at the command line. |
Hi,
I am trying to add a HTTP profile to a vServer and have issues when both the profile and the vServer are not in the Common partition. When I use the Ansible task:
- name: add HTTP profile
f5bigip_ltm_virtual_profile:
f5_hostname: "{{Target.host}}"
f5_username: "{{setup_user}}"
f5_password: "{{setup_pass}}"
partition: App_XYZ
state: "present"
name: myHttp
virtual: vs_Server
delegate_to: localhost
I get this error:
"msg": "404 Unexpected Error: Not Found for uri: https://bigip1:443/mgmt/tm/ltm/virtual/~App_XYZ~vs_Server/profiles/\nText: u'{"code":404,"message":"Object not found - myHttp","errorStack":[],"apiError":1}'"
But: When I look in the GUI I see the profile was correctly associated with the vServer!
When I re-run the playbook it always works fine. The issue is when adding the profile to a vServer for the 1st time.
Maybe my arguments are wrong. Any help would be appreciated - thanks!
-Jim ([email protected])
Hi,
When trying to use the f5bigip_cm_device module, regardless of what values I passed, I got the error:
fatal: [c1-guest00 -> localhost]: FAILED! => {"changed": false, "msg": "Missing required params: ['partition']"}
Removing the line
del self.params['partition']
from f5bigip_cm_device.py solved the issue.
I noticed some modules are missing from the "sys:*" namespace, but I was looking for sys:config in particular to load/merge/save SCF files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.