This role is a standard configuration for Ubuntu systems used at Xronos.
- apt updates and package management
- pip updates
- timezone configuration
- prerequisites for common Ansible modules
Provisioning host:
- ansible 2.15 or later
Host that will be configured:
- Ubuntu 22.04 or 24.04
Add this role to your Ansible playbook file.
- name: configure ubuntu
role: xronos_ubuntu_common_ansibleubuntu_apt_upgradeUpgrade packages? Otherwise install packages only if not present. Defaults to"once"to upgrade once per host. Values are"once", "always", "no".ubuntu_disable_unattended_upgradesDisable unattended upgrades? Defaults totrue.ubuntu_timezoneTimezone to set. Defaults toAmerica/Los_Angeles.ubuntu_ntp_enableInstall and start NTP service. Defaults totrue.ubuntu_trim_motdTrim MOTD to minimal messages? Defaults tofalse.
ubuntu_snapshotSnapshot to use for ubuntu archives. FollowsYYYYMMDDTHHMMSSZformat, for example20230302T030400Zfor 03:04 UTC on 2 March 2023. Defaults to empty (do not configure snapshots).ubuntu_python_versionVersion of Python3 package to install. Defaults to empty (latest).