wojtek0806 / wojtek0806.f5os / 0.3.0 / module / velos_partition_wait Wait for a VELOS chassis partition to match a condition before continuing | "added in version" 1.0.0 of wojtek0806.f5os" Authors: Ravinder Reddy (@chinthalapalli)wojtek0806.f5os.velos_partition_wait (0.3.0) — module
Install with ansible-galaxy collection install wojtek0806.f5os:==0.3.0
collections: - name: wojtek0806.f5os version: 0.3.0
Wait for VELOS chassis partition to match a condition before continuing.
- hosts: all collections: - f5networks.f5os connection: httpapi vars: ansible_host: "lb.mydomain.com" ansible_user: "admin" ansible_httpapi_password: "secret" ansible_network_os: f5networks.f5os.f5os ansible_httpapi_use_ssl: yes tasks: - name: Wait for the specified partition to be in the running state. velos_partition_wait: name: partition1 - name: Wait a maximum of 300 seconds specified partition to be in the api_available state. velos_partition_wait: name: partition1 state: ssh-ready timeout: 300 - name: Wait 30 seconds before verifying the specified partition to be in the running state. velos_partition_wait: name: partition1 state: running delay: 30
msg: description: - This overrides the normal error message from a failure to meet the required conditions. type: str name: description: - Name of the chassis partition. required: true type: str delay: default: 0 description: - Number of seconds to wait before starting to poll. type: int sleep: default: 1 description: - Number of seconds to sleep between checks. type: int state: choices: - running - ssh-ready default: running description: - The condition for which the system is waiting. - Defaults to C(running), which verifies the specified chassis partition has been created with a status of 'running'. - C(ssh-ready) waits for a deployed tenant to be reachable via SSH. type: str timeout: default: 600 description: - Maximum number of seconds to wait for the desired state. type: int
elapsed: description: Seconds spent waiting for the requested state. example: 600 returned: always type: int partition_state: contains: controllers: description: State of controllers example: ' { "controllers": { "controller": [ { "controller": 1, "partition-id": 2, "partition-status": "running-active" }, { "controller": 2, "partition-id": 2, "partition-status": "running-standby" } ] }' returned: always type: str description: State data for the specified partition. returned: always type: complex