infOpen.base-packages
base-packages
This role is for installing various essential packages on systems to manage the basic setup for all deployments.
Requirements
You need Ansible version 2.8 or higher to use this role. The exact platform requirements can be found in the metadata file.
Testing
This role uses Molecule for testing.
By default, tests run on Docker, both locally and in GitHub Actions. Check the Molecule documentation for information on using different backends.
Currently, the tests run on:
- CentOS 7
- CentOS 8
- Debian Buster
- Debian Stretch
- Ubuntu Bionic
- Ubuntu Focal
And it uses:
- Ansible version 2.8.x
- Ansible version 2.9.x
Running tests
Using Docker driver
$ tox
You can also change Molecule options and commands by using environment variables:
MOLECULE_OPTIONS
Default: "--debug"MOLECULE_COMMAND
Default: "test"
$ MOLECULE_OPTIONS='' MOLECULE_COMMAND=converge tox
Role Variables
If you need to remove a package, add a state
key with the value 'absent'.
Default role variables
base_packages_items: "{{ _base_packages_items }}"
base_packages_repository_cache_valid_time: 3600
Specific Debian family variables
_base_packages_items:
- name: 'acl'
- name: 'curl'
- name: 'dstat'
- name: 'git'
- name: 'htop'
- name: 'iftop'
- name: 'iotop'
- name: 'mtr'
- name: 'rssh'
- name: 'sshfs'
- name: 'sysstat'
- name: 'tree'
- name: 'vim'
- name: 'cron-apt'
- name: 'debian-goodies'
- name: 'di'
- name: 'molly-guard'
- name: 'nagios-plugins'
- name: 'nagios-plugins-contrib'
Specific RedHat family variables
_base_packages_items:
- name: 'acl'
- name: 'curl'
- name: 'dstat'
- name: 'git'
- name: 'htop'
- name: 'iftop'
- name: 'iotop'
- name: 'mtr'
- name: 'rssh'
- name: 'sshfs'
- name: 'sysstat'
- name: 'tree'
- name: 'vim'
- name: 'nagios-plugins-all'
- name: 'yum-cron'
- name: 'yum-utils'
Dependencies
There are no dependencies.
Example Playbook
- hosts: servers
roles:
- { role: infOpen.base-packages }
License
MIT License
Author Information
Alexandre Chaussier (for Infopen company)
- https://www.infopen.pro
- a.chaussier [at] infopen.pro