jpnewman.common
jpnewman.common
This is a general Ansible role that: -
Updates apt cache
Installs the following atp packages. Can be overwritten via list variable
apt_packages: -- software-properties-common
- python-software-properties / python3-software-properties (Stretch)
- ntp
- unzip
- htop
- vim
- sysstat
- nmon
- nload
- whois
- sshpass
- expect
- traceroute
- curl
Updates alternative editor to vim
Configures 'skel' bash aliases
Updates limits
Requirements
Ansible 2.x
Role Variables
| Variable | Description |
|---|---|
| apt_packages | Overrides the list of the default apt packages to install |
| limits | Contains a list of 'limit' classes |
| 'limit' class variables | Description | Default |
|---|---|---|
| domain | Contains limits domain. | * |
| type | Contains limits type. | hard |
| item | Contains limits item. | nofile |
| value | Contains limits value. | unlimited |
NOTES: -
- Default apt packages are included via
varsYAML filesansible_os_familyand thenansible_lsb.codename.
e.g. Ifapt_packagesis not defined and the platform codename isStretch, variables from platform filevars/ubuntu.ymlwill be loaded and then overwritten with variables invars/stretch.yml, if it exists. - See http://linux.die.net/man/5/limits.conf for more
limits.confinformation.
e.g.
apt_packages:
- software-properties-common
- python-software-properties
- ntp
- unzip
- htop
- vim
...
limits:
- domain: '*'
type: 'soft'
item: 'nofile'
value: 'unlimited'
- domain: '*'
type: 'hard'
item: 'nofile'
value: 'unlimited'
Dependencies
none
Example Playbook
- hosts: servers
roles:
- { role: jpnewman.common, tags: ["init"] }
Testing
For more information on testing the template review readme ./tests/templates/README.md
License
MIT / BSD
Author Information
John Paul Newman
Install
ansible-galaxy install jpnewman.commonLicense
mit
Downloads
171
Owner
Software Engineer with DevOps working on both Windows and *nix.
