bigip_fast_template – Manages FAST template sets on BIG-IP

New in version 1.0.0.

Synopsis

  • Uploads and manages FAST template sets on the BIG-IP.

Parameters

Parameter Choices/Defaults Configuration Comments
force
boolean
    Choices:
  • no ←
  • yes
When set to yes any existing template with the same name will be overwritten by the new import.
name
string
The name of the FAST template set to create or remove.
When present the name must correspond to the basename of the uploaded zip file without the file extension.
Parameter is optional when state is present, the name will be derived from the basename of the uploaded zip file.
Parameter is mandatory when state is absent, and disregarded when state is purge.
source
path
Full path to a template set file to be imported into the BIG-IP.
File must be in a zip format, other formats will raise an error when attempting to activate the template sets.
Parameter is required when state is present
state
string
    Choices:
  • present ←
  • absent
  • purge
When state is present, the FAST template set is uploaded and created on the device.
When state is absent, ensures the existing FAST template set is removed.
When state is purge, ensures all the FAST templates are removed from the device.

Examples

- hosts: all
  collections:
    - f5networks.f5_bigip
  connection: httpapi

  vars:
    ansible_host: "lb.mydomain.com"
    ansible_user: "admin"
    ansible_httpapi_password: "secret"
    ansible_network_os: f5networks.f5_bigip.bigip
    ansible_httpapi_use_ssl: yes

  tasks:
    - name: Upload and create FAST template set
      bigip_fast_template:
        name: new_template_set
        source: /root/new_template_set.zip
        state: "present"

    - name: Upload and create FAST template set, name not given - force overwrite
      bigip_fast_template:
        source: /root/new_template_set.zip
        state: "present"
        force: yes

    - name: Remove existing FAST template set
      bigip_fast_template:
        name: new_template_set
        state: "absent"

    - name: Remove all existing FAST template sets
      bigip_fast_template:
        state: "purge"

Return Values

The following are the fields unique to this module:

Key Returned Description
name
string
changed
Name of the template set to be created/overwritten.

Sample:
some_template
source
string
changed
Local path to FAST template set file.

Sample:
/root/some_template.zip


Status

Authors

  • Wojciech Wypior (@wojtek0806)