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 allows 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 filename is specifically cherry picked from it to properly remove the package. |
||
retain_package_file
boolean
|
|
Whether or not the install file be deleted on successful installation of the package.
|
|
state
string
|
|
Whether the LX package should exist or not.
|
|
timeout
integer
added in 1.4.0 |
Default: 300
|
The amount of time to wait for the installation task to complete, in seconds.
The accepted value range is between
10 and 1800 seconds. |
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¶
- name: Install AS3
bigip_lx_package:
package: f5-appsvcs-3.5.0-3.noarch.rpm
- name: Install AS3 with custom timeout
bigip_lx_package:
package: f5-appsvcs-3.5.0-3.noarch.rpm
timeout: 100
- 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: true