timezone_mgmt – Manage timezone for AIX systems.

Synopsis

This module is useful for viewing and updating timezones.

This module is a wrapper around tzupg.pl script.

Requirements

The below requirements are needed on the host that executes this module.

  • AIX >= 7.3.3

  • Python >= 3.9

Parameters

action (True, str, None)

Specifies which action needs to be performed. list_versions lists the available timezone versions and the current version; update_timezone updates the timezone database; print_updated_zones prints the updated zones from the system; update_timezone_offline updates timezone using the provided timezone DB;

timezone (False, str, None)

Specifies the timezone database that the system needs to be updated to.

Required for action=update_timezone.

db_location (False, str, None)

Specifies the location of tar ball containg timezone DB.

This needs be provided with action=update_timezone_offline

Only works when action=update_timezone_offline is set

Notes

Note

Examples

- name: List all available versions of timezones
  ibm.power_aix.timezone_mgmt:
    action: list_versions

- name: Update timezone
  ibm.power_aix.timezone_mgmt:
    action: update_timezone
    timezone: 2025b

- name: Fetch updated zones
  ibm.power_aix.timezone_mgmt:
    action: print_updated_zones

Return Values

msg (always, str, )

The execution message.

cmd (always, str, )

The command executed.

rc (always, int, )

The command return code.

stdout (always, str, )

The standard output of the command.

stderr (always, str, )

The standard error of the command.

changed (always, bool, )

Shows if any change was made.

timezone_details (If I(action=list_versions) or I(action=print_updated_zones), dict, )

Contains the details related to timezone.

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by community.

Authors

  • Shreyansh Chamola (@schamola)