bigip_lx_package – Manages Javascript LX packages on a BIG-IP

New in version 1.0.0.

Synopsis

  • Manages Javascript LX packages on a BIG-IP. This module will allow you to deploy LX packages to the BIG-IP and manage their lifecycle.

Requirements

The below requirements are needed on the local master node that executes this .

  • The ‘rpm’ tool installed on the Ansible controller

Parameters

Parameter Choices/Defaults Configuration Comments
package
path
The LX package that you want to upload or remove. When state is present, and you intend to use this module in a role, it is recommended that you use the {{ role_path }} variable. An example is provided in the EXAMPLES section.
When state is absent, it is not necessary for the package to exist on the Ansible controller. If the full path to the package is provided, the fileame will specifically be cherry picked from it to properly remove the package.
retain_package_file
boolean
    Choices:
  • no ←
  • yes
Should the install file be deleted on successful installation of the package
state
string
    Choices:
  • present ←
  • absent
Whether the LX package should exist or not.

Notes

Note

  • Requires the rpm tool be installed on the host. This can be accomplished through different ways on each platform.
  • On Debian based systems with apt; apt-get install rpm.
  • On Mac with brew; brew install rpm.
  • This command is already present on RedHat based systems.

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: Install AS3
      bigip_lx_package:
        package: f5-appsvcs-3.5.0-3.noarch.rpm

    - name: Add an LX package stored in a role
      bigip_lx_package:
        package: "{{ roles_path }}/files/MyApp-0.1.0-0001.noarch.rpm'"

    - name: Remove an LX package
      bigip_lx_package:
        package: MyApp-0.1.0-0001.noarch.rpm
        state: absent

    - name: Install AS3 and don't delete package file
      bigip_lx_package:
        package: f5-appsvcs-3.5.0-3.noarch.rpm
        retain_package_file: yes

Status

Authors

  • Wojciech Wypior (@wojtek0806)