ingatesystems.fuego_modules.fuego_datetime – Manage date and time on an Ingate SBC.
Note
This plugin is part of the ingatesystems.fuego_modules collection (version 1.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ingatesystems.fuego_modules
.
To use it in a playbook, specify: ingatesystems.fuego_modules.fuego_datetime
.
New in version 1.0.0: of ingatesystems.fuego_modules
Synopsis
Manage date and time on an Ingate SBC.
Requirements
The below requirements are needed on the host that executes this module.
ingatesdk >= 1.0.14
Parameters
Parameter |
Comments |
---|---|
A dict object containing connection details. |
|
The hostname or IP address to the unit. |
|
The password for the REST API user. |
|
Which HTTP(S) port to connect to. |
|
Which HTTP protocol to use. Choices:
|
|
The timeout (in seconds) for REST API requests. |
|
The username of the REST API user. |
|
Verify the unit’s HTTPS certificate. Choices:
|
|
REST API version. Choices:
|
|
A dict object containing time information. Use with |
|
A date. E.g. 2018-07-19. |
|
A time. E.g. 11:59:59. |
|
A timezone. E.g. Europe/Stockholm. |
|
Get the current date, time and timezone. Choices:
|
|
Set the current date, time and timezone. Choices:
|
|
List all available timezones. Choices:
|
Notes
Note
This module requires that the Ingate Python SDK is installed on the host. To install the SDK use the pip command from your shell
pip install ingatesdk
.
Examples
# Set date, time and timezone
- fuego_datetime:
client: "{{ stored_client_data }}"
set: true
datetime:
zone: "Europe/Stockholm"
time: "18:00:00"
date: "2019-02-12"
# name: Get date, time and timezone
- fuego_datetime:
client: "{{ stored_client_data }}"
get: true
# List all available timezones.
- fuego_datetime:
client: "{{ stored_client_data }}"
timezone_list: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Get current date, time and timezone Returned: when |
|
Date, time and timezone information Returned: success Sample: “2018-07-25 14:25:09 Europe/Stockholm” |
|
Set current date, time and timezone Returned: when |
|
Date, time and timezone information Returned: success Sample: “2018-07-25 14:24:09 Europe/Stockholm” |
|
List of available timezones Returned: when |
|
Zone information Returned: success |
|
The name of the zone Returned: success Sample: “US/Michigan” |