Role Name
updater, is updating and upgrading the packages.
- Check out for more info how to use apt
Requirements
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
updater_time_timezone: Europe/Berlin
updater_language_default_pack: en
updater_config_system_locale: en_US.UTF-8
updater_config_system_language: en_US.UTF-8
Dependencies
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
Example how to use:
- name: PRE | pre installer (1) | updater
remote_user: "{{ ansible_user }}"
hosts:
- pre
roles:
### -------------------------
- role: ansible-updater
# set language per client
clients:
- name: "{{ ansible_user }}"
locale: en_US.UTF-8
language: en_US.UTF-8
# define which modules should be performed
updater_config:
set_timezone: true
set_time_sync: true
sync_time: true
set_language: true
update_upgrade: true
setup_zfs: true
setup_unattended: true
# define your timezone
updater_time_timezone: Europe/Berlin
# set ntp servers
updater_ntp_server: time.cloudflare.com
updater_ntp_fallback_server: ntp.ubuntu.com
# set default system language
updater_language_default_pack: en
updater_config_system_locale: en_US.UTF-8
updater_config_system_language: en_US.UTF-8
# define pattern for unattended to update for
updater_unattended_origins_patterns:
- "origin=Ubuntu,archive=${distro_codename}-security"
- "o=Ubuntu,a=${distro_codename}"
- "o=Ubuntu,a=${distro_codename}-updates"
- "o=Ubuntu,a=${distro_codename}-proposed-updates"
License
GNU AFFERO GENERAL PUBLIC LICENSE
Author Information
MVladislav