andyceo.preconf
Ansible Role: preconf
This role supposed to execute first and it checks that all packages are updated and make some adjustments to sysctl.
Requirements
Supported operating systems: see https://github.com/andyceo/ansible-role-preconf/blob/master/meta/main.yml#L12
Configuration
Configuration can be made with one variable: preconf, that should be a dictionary. All configuration is organized in sections, which usualy maps to tags. For example, preconf.apt_keys section store apt keys and them can be executed with tag preconf-apt-keys.
Tags:
- preconf-apt-packages-remove: remove or purge packages (use
preconf.packages_removeconfiguration variable) - preconf-apt-keys: only add/remove keys to/from apt keyring (use
preconf.apt_keysconfiguration variable) - preconf-apt-repositories: only add/remove repositories to/from apt (use
preconf.repositoriesconfiguration variable) - preconf-apt-packages: only install package sets declared in
preconf.package_sets_installconfiguration variable. The package sets itself are declared inpreconf.package_setsconfiguration variable. - preconf-apt: process all apt-related tags: preconf-apt-packages-remove, preconf-apt-keys, preconf-apt-repositories, preconf-apt-packages
- preconf-grub: update Grub2 settings (for now it just set
GRUB_TIMEOUTandGRUB_RECORDFAIL_TIMEOUTto2only and explicitly) - preconf-sysctl: managing
sysctlentries - preconf-crons: create/update/delete crons
- preconf-hostname: only change node's hostname and /etc/hosts file respectively.
- preconf-systemd: run systemd-related tasks
- preconf-systemd-services: set up systemd services with defined params
- preconf-lid: disable lid switch handling (usefull for notebooks that functioning as a server)
Install
ansible-galaxy install andyceo.preconfLicense
Unknown
Downloads
135
Owner
Fullstack developer, AI R&D, Master of Computer Science, CTO, Software Architect, Devops, Highload, Blockchain R&D
